The task states that information in the console should be output from the message resource (first encountered). The program changes the language according to the keyboard layout and shows the exact date.

I write as standard via .getLocale (). GetLanguage () and

Date date = new Date(); 

Tell me, does this relate to a message resource, or am I doing wrong in the root?

    1 answer 1

    Most likely, it means Resource Bundle . You create a default file with all the messages where all messages will be stored. Then you create copies with the translation. When implemented correctly, when the Locale changes, messages for the current language will be delivered. In addition, use the last Java Date and Time API from Java 8 Example of using resource bundle

    • Thank. Oh, and I have done everything through .txt. I will correct. - Nikolay