Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to print some text on the same line using multiple print statements

Posted By: Christy Taylor     Category: Java     Views: 3253

A Java Program to print some text on the same line using multiple print statements.

Code for Program to print some text on the same line using multiple print statements in Java

publicclass JAVA_063
 {

    publicstaticvoid main(String[] args)
    {
       System.out.print("This line is ");
       System.out.print("printed by using the statement");
       System.out.print(" \"System.out.print( )\".");

       System.out.println("\n");
    }
 }
  
Share: 



Christy Taylor
Christy Taylor author of Program to print some text on the same line using multiple print statements is from St Louis, United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!