Did you read the Locale Class reference that I linked?
You have to import java.util.Locale to use it.
In fact, instead of importing java.util.Scanner and java.util.Locale separately, the way...
Type: Posts; User: Zaphod_b
Did you read the Locale Class reference that I linked?
You have to import java.util.Locale to use it.
In fact, instead of importing java.util.Scanner and java.util.Locale separately, the way...
It's a Locale thing.
What do you get if you put the following statement at the beginning of main()?
System.out.println("Locale: " + Locale.getDefault().getDisplayName());
If you...