|
-
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!");
Similar Threads
-
Replies: 2
Last Post: 11-20-2000, 09:20 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks