TutorialFor
  • Home
  • More..
  • Search  Register  login
Home>2019-12-08 12:03

java - localeus and uk are good, but localeen_au gives a syntax error

Locale.US and UK are good, but Locale.en_AU is a syntax error.
I want to know how to set Australian English for Locale.

Applicable source code
Locale locale = Locale.en_AU;
Supplemental information (FW/tool version etc.)

Android Studio3.4
API level 14 to 28

java android androidstudio
  • Answer # 1

    You can set it below.

    Locale locale = new Locale ("en_AU");

Related articles

  • java - i get a syntax error on (s), misplaced construct (s) error what should i do? help me
  • java - sql syntax error doesn't go away
  • c - in mplab x v54, the __delay_ms() syntax gives an error
  • java - running dopost gives a 405 error
  • java - determining code with if syntax
  • java - i want to make a program that gives 10% off for items over 1000 yen and under 5000 yen, and 20% off for items over 5000 y
  • java - there is a syntax error in "{" this token does not follow with an error that a case must be specified would any
  • java - about while syntax
  • form authentication by java web application jdbc realm gives an error
  • java - i want to display a syntax error in eclipse
Related questions
  • java - i want to display a part of the database on firebase as text on the application screen
  • How to switch images on click in Java (android)
  • java : How to send a Retrofit2 request correctly?
  • android : I want to change the color of the button taken out from the list after waiting for 1 second.
  • java : Error going to the payment page Webview Android
  • java : How to arrange ships in the Sea Battle game
  • java : How to change the background color in an application by touching the screen
  • java : Play does not stop
  • java : Old projects won't start
  • java : How to display multiple retrofit2 responses in recyclerView
© 2019 Programming tutorial for beginners