Computer Science, asked by drishtipandey05, 4 hours ago

Design a class in java to input a string and print the letters on separate line

Answers

Answered by photosonyo
1

Answer:

public static void main (String [] args){

System.out.println("Hello world")

System.out.println("hello sir")

}

Explanation:

Both will print in different lines

Define class as well in your ide

Similar questions