Scanner class with a String
I'm new to the forum and am taking a Java class in college. I'm having a problem with one of my projects for class.
My main class is working fine, but in my test program, I can't scan a string using the Scanner. It doesn't even wait for input. Everything looks right to me, could it have something to do with Java on the Mac?
Here is my code snippet:
Any ideas? Yes, I declared a Scanner and yes, I declared the string color.
System.out.print("Enter the Color: ");
color = input.nextLine();