-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWelcome.java
28 lines (25 loc) · 923 Bytes
/
Welcome.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.HashMap;
import java.util.Map;
public class Welcome {
public static String greet(String language) {
Map<String, String> idiomas = new HashMap<>();
idiomas.put("english", "Welcome");
idiomas.put("czech", "Vitejte");
idiomas.put("danish", "Velkomst");
idiomas.put("dutch", "Welkom");
idiomas.put("estonian", "Tere tulemast");
idiomas.put("finnish", "Tervetuloa");
idiomas.put("flemish", "Welgekomen");
idiomas.put("french", "Bienvenue");
idiomas.put("german", "Willkommen");
idiomas.put("irish", "Failte");
idiomas.put("italian", "Benvenuto");
idiomas.put("latvian", "Gaidits");
idiomas.put("lithuanian", "Laukiamas");
idiomas.put("polish", "Witamy");
idiomas.put("spanish", "Bienvenido");
idiomas.put("swedish", "Valkommen");
idiomas.put("welsh", "Croeso");
return idiomas.getOrDefault(language, idiomas.get("english"));
}
}