Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

paulscofield

macrumors newbie
Original poster
Oct 14, 2011
2
0
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
 
Last edited by a moderator:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.