Java:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String big = scan.nextLine();
String[] splittting = big.split(“\\s”);
for(String g : splittting){
System.out.println(g);
}
m=str(input())
n=m.split()
For i in n:
Print(i)
Java:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String big = scan.nextLine();
String[] splittting = big.split(“\\s”);
for(String g : splittting){
System.out.println(g);
}
}
}
Hy
Hello prepster!
How can we help you?