• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to continue next line in println  RSS feed

 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

hi this is basic ,but can anyone give me information that how to continue our statement like this
System.out.println("adsafa
");
 
Dani Atrei
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

Like this:

System.out.println("adsafa"+
"more text");

Dan
 
Sandeep Mali
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wild guess, couldnt get ur question correctly

to take ur output to the next line

System.out.println("assasa \n ererer");

or if its confusing you can write the above code as

System.out.println("assasa" + "\n" + "ererer");

Do tell me if I have answered ur question, or Dani Atrei got the correct question.
 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
thanks both of you help me (Dani Atrei ,Sandeep Mali )

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!