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.

** Sorry there is no properties file. This is all info I have from the assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!