Java equivalent of Invariant Culture
问题 I am converting the following C# code to Java. Is there a Java equivalent to the .NET concept of Invariant Culture? string upper = myString.ToUpperInvariant(); Since the Invariant Culture is really just the US culture, I could just do something like this in Java, but I'm wondering if there is a better way: String upper = myString.toUpperCase(Locale.US); 回答1: Update: Java 6 introduced Locale.ROOT which is described as: This is regarded as the base locale of all locales, and is used as the