Write a program that reads four integer numbers from one line and prints them each in a new line. In the input line, numbers are separated by one or more spaces.
Integer types and operations
Reading integer numbers
Report a typo
Sample Input 1:
101 102 103 104Sample Output 1:
101
102
103
104Write a program in Java 17
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// start coding here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.