dank95011 dank95011
  • 03-10-2019
  • Computers and Technology
contestada

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

Respuesta :

SerenaBochenek SerenaBochenek
  • 06-10-2019

Answer:

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");  

} }

Answer Link

Otras preguntas

How do you do this algebra question
How many light sources do you know Pls list them
In a class of 35 students, 25 girls averaged 92% on the last test, while the 10 boys averaged 85% on the same test. What is the average for the entire class on
If x^5y^4z^2 <0 , which of the following must be true? I xy <0 II yz <0 III xz <0
how to write an equation and solve it for the followingOne fifth of the employees of Delta Industries, Inc., work in the Sotheastern region. If the company empl
find the difference: 7 7/8 - 3 1/4
A box contains bags of crisps. Each bag of crisps weighs 25 grams. Altogether, the bags of crisps inside the box weigh 1 kilogram. How many bags of crisps are i
What are three interesting facts about Susan B. Anthony's childhood ?
Factor completely, the expression: 2x^3-2x^2-12x
What is 2.333333 in fraction form