Write a program that reads exactly four words from the input and outputs them in the same order, but each in a new line.
Your program should declare four strings, read the input using the next() method, and print out each string in a new line.
Write a program that reads exactly four words from the input and outputs them in the same order, but each in a new line.
Your program should declare four strings, read the input using the next() method, and print out each string in a new line.
Sample Input 1:
Hello
Java
Future programmerSample Output 1:
Hello
Java
Future
programmerCreate a free account to access the full topic