Question
Hi guys, having an issue with this java question?Write a program to accomplish the following: Create 3 locales for the default language, German and Spanish,
Hi guys, having an issue with this java question?Write a program to accomplish the following: Create 3 locales for the default language, German and Spanish, respectively, and store them in an array list; For each of the 3 locales, display greetings, goodbyes and thanks using the properties files that you have created in the previous exercise (for example, for greetings, your program should display hello, hallo and hola, respectively); For each of the 3 locales, display the formatted value 2.34567 so that will display only 1 digit after the decimal point (for example, your program should print 2.3, 2,3 and 2, 3, respectively); Finally, for each of the 3 locales, display the formatted current date and time using the LONG formatting style (for example, your program should print 18 March 2017 09:20:12 GMT, 18. Mrz 2017 09:20:12 GMT, 18 de marzo de 2017 9:20:12 GM). Could I see any sample answer please? For this exercise you need to use the Locale, Date, NumberFormat and DateFormat classes.
The properties file should be from this question- which i am also struggling with - Create 3 properties files for the following language codes: The default language (in our case is English); German; Spanish. Each file must contain mappings for greeting, goodbye and thanks. (Hello in German is hallo, in Spanish is hola; goodbye in German is auf wiedersehen, in Spanish is adios; thanks in German is danke, in Spanish is gracias).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started