Programming tutorials online .NET, Java, C++, Visual Basic, and More
 

Home
.NET Tutorials
General Programming Tutorials
Community/Forums
Site Extras

 

Java/J2EE Forum
 

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!


POST REPLY
Posted By: robosycho   5/8/2006 5:42:00 PM
Reply To: jnox who posted...
 
What jnox means to say is, there is a character that will insert the newlines or 'enter' that you want. Simply put \n whereever you need a new line. So if I wanted to write the phrase: Hello!
Goodbye!

Then I would write:

System.out.println("Hello\nGoodbye");

Similar to this are the tab \t and quotations \"



 
Sign In
Email
Password
  Forgot my password

Search

Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition


Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005





 
© 2022 Ammastore.org
All Rights Reserved
COMPUTER SCIENCE HOMEWORK | Privacy/Disclaimer