Scanner scan = new Scanner(System.in);//makes a scanner so we can get info in from user

System.out.print("Enter a string: "); //tells user to enter their name
String name = scan.nextLine(); //actually take that entered info and store into a variable called name (variable type needs to match)
name = name.trim();

Scanner scan = new Scanner(System.in);//makes a scanner so we can get info in from user

System.out.print("Enter a string: "); //tells user to enter their name
String name = scan.nextLine(); //actually take that entered info and store into a variable called name (variable type needs to match)
name = name.trim();