You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.println("Enter a list of strings separated by spaces: ");
Scannersc = newScanner(System.in);
Stringinput;
StringinputString;
input = sc.nextLine();
inputString = input.trim();
while(inputString.length() == 0){
System.out.println("Input must be at least 1 non-whitespace character long,\nplease re-enter list of strings separated by spaces,\nalso enter X or x to exit");