Results 1 to 2 of 2
Thread: Printing a new line
- 09-02-2013, 05:59 AM #1
Member
- Join Date
- Sep 2013
- Posts
- 1
- Rep Power
- 0
Printing a new line
Hi everyone, I am new to Java and I got the basics you know printing Hello World and all that good stuff. But I just added another line and it does not appear when I compile it. Only Hello World appears. What might be the problem?
Java Code:public class MyFirstJavaProgram { public static void main(String []args) { System.out.println("Hello World. "); System.out.print("How are you all today?"); } }
- 09-02-2013, 06:11 AM #2
Re: Printing a new line
I wouldn't expect it to. You need to learn the difference between compiling and executing Java code.
Start here: Trail: Getting Started (The Java™ Tutorials)
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
Similar Threads
-
Printing 5 Strings per line
By mafro in forum New To JavaReplies: 14Last Post: 05-04-2012, 11:03 AM -
Printing indexOf line
By clrgomes in forum New To JavaReplies: 2Last Post: 03-06-2011, 09:30 AM -
Having trouble with printing a blank line.
By Meta in forum New To JavaReplies: 4Last Post: 05-11-2010, 11:54 PM -
Issue with printing line
By Azndaddy in forum Advanced JavaReplies: 1Last Post: 04-04-2008, 08:37 PM -
Printing command line arguments
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 10:27 AM
Bookmarks