I really need help: I cannot figure out the difference between println and print

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

I really need help: I cannot figure out the difference between println and print

Hi,
The teacher asks me to use both methods System.out.println ( )and System.out.print ( ) but I only see that they are the same. I have just worked out with Java for a few days and I really need help. I appreciate your help a lot. Thank you so much.
My sample code:
public class Question4{//The class name
public static void main(String[]args){ //method name
System.out.println(new String("This is my first try"));
System.out.println();//The blank line
System.out.println(new String("at programming in Java"));
System.out.println();//The blank line
System.out.println("It's fun!");

Everything you need to know about methods are in the API. The println and print methods are in the url=http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html]PrintStream[/url] (out is an instance of PrintStream).