Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class P06ForeignLanguages {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String country = scanner.nextLine();
- switch (country) {
- case "England":
- case "USA":
- System.out.println("English");
- break;
- case "Spain":
- case "Argentina":
- case "Mexico":
- System.out.println("Spanish");
- break;
- default:
- System.out.println("unknown");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement