package linguagem;
import java.util.*;
public class Linguagem {
public static void main(String[] args) {
Locale locale = new Locale("PORTUGUESE", "PT");
System.out.println("Linguagem: " + locale.getDisplayLanguage());
}
}
Then it returns portuguese
.
However,mysystemisinEnglish,Ineedittoreturnenglish
.
Is there any way to auto detect the current system language?