Ask Question

What statement would you use to print the phrase Hello, world and then start a new line?

+5
Answers (1)
  1. 19 April, 07:28
    0
    Statement to print phrase "Hello, world" and then start a new line in java.

    System. out. println ("Hello, world");

    Explanation:

    In java, we use "System. out. println (); " statement to print any string/phrase and then start a new line. The above line will print phrase "Hello, world" and then start a new line.

    Implementation in java:

    / / class definition

    class Main

    {

    / / main method of the class

    public static void main (String[] args)

    {

    / / statement to print phrase and start new line

    System. out. println ("Hello, world");

    } }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What statement would you use to print the phrase Hello, world and then start a new line? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers