i wish to read multiple inputs on a single line in java.
Ex:
System.out.print("Input name, age, address, city: ");
user will input these details separated with space
what is expected in console:
Input name, age, address, city: Tom, 10, USA, NY
Any idea how to do this, using the Scanner class. Thanks.