simple copy an paste question

Discussion in 'Mac Programming' started by paulscofield, Oct 14, 2011.

  1. paulscofield, Oct 14, 2011
    Last edited by a moderator: Oct 15, 2011

    paulscofield macrumors newbie

    Joined:
    Oct 14, 2011
    #1
    Code:
    public class MuchBetter
    {
      public static void main(String[]args) 
      {
        System.out.println("A "quoted" String is");
     
     "'much' better if you learn"
      "the rules of "escape sequences.""
      "Also, "" represents an empty String.
      "Don't forget: use \" instead of " !
       "'' is not the same as ""
      } 
    }
    

    I am very new to mac and just purchased my first macbook pro ever.
    My question is:

    1. Is there a way to indent the 5 statements below the System.out.println to match the indentation of the System.out.println itself all at once without having to indent each line?

    2. Also is there a way to copy and paste System.out.println("") around the five text statements? For example, can you copy and past before and after a text sentence?

    Please advise. Thanks.



    I
     
  2. paulscofield thread starter macrumors newbie

    Joined:
    Oct 14, 2011
    #2
    No this is not homework, just a sample basic code i've written to exemplify what I'm trying to ask on mac. I just don't know how to navigate and manipulate text as well on a mac efficiently yet.
     

Share This Page