Computer Science, asked by iushe, 11 months ago

write a program in java to print your 5 hobbies on the output screen​

Answers

Answered by chaitanyagg8
0

Answer:

String h1 = nextLine();

String h2 =nextLine();

String h3 =nextLine();

String h4 =nextLine();

String h5 =nextLine();

System.out.println(h1+"\n"+h2+"\n"+h3+"\n"+h4+"\n"+h5);

Explanation:

This is just a syntax.By using Scanner class in java.

pls add brainllist.

Similar questions