Hi everyone -
Its an honor to promote my book at JavaRanch.
To make this promotion interesting, I'll post questions or code for ranchers to answer.
So here's an exercise on Localization
=================================
Shreya was asked to create book marks for her language teachers (German, Spanish and English) at her school. All the bookmarks were to include text 'Good day!' in the language that the teacher taught.
Because Shreya didn't know the equivalent text in all these languages, she created book marks without the text as follows:
Then she requested her German and Spanish friends to send her text equivalent to 'Good Day'. This is what she received:
'Good day' in German = Guten tag
'Good day' in Spanish = Buen dia
Now she wanted to print out these labels on the bookmarks, so that they look like this.
Can you write a quick
Java method that retrieves these text labels from the following (separate) text files, when passed an appropriate language.
Here's partial code:
Happy coding!
With much respect,
Mala