Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

String Literals  RSS feed

 
Akshayan Venkatesh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please reply this Question and How is Functioning ?
It will display the answer hai.

class Q15
{
public static void main(String[] args)
{
System.out.print("\nab");
System.out.print("\bsi");
System.out.print("\rha");

}

}
if i change the order of system.out.the answer will change. How to functioning of this evaluations such as backspace and newline and garriage return.

I expecting the answres early as possible...

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Akshyan,

Offcourse all the time you change the SYstem.out Statement because \n(New Line), \b(Backspace) \r(Garriage Return) are working .with every time they occur. So I don't think so there is any problem .

Cheers UP
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Akshayan Venkatesh

You are adviced not to log any thread twice this will waste the time.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!