import java.util.Random;
import java.util.Scanner;
class Main
{
{
int location = generator.nextInt(3);
// initialize array
topic[0][0][0] = "Paris";
topic[0][0][1] = "London";// Easy-Places \\
topic[0][0][2] = "Sydney";
topic[0][1][0] = "Toronto"; // medium places
topic[0][1][1] = "Florida";
topic[0][1][2] = "Frankfurt";
topic[0][2][0] = "Barcelona"; // hard places
topic[0][2][1] = "Vancouver";
topic[0][2][2] = "Zimbabwe";
topic[1][0][0] = "Halo"; //
topic[1][0][1] = "Fifa"; // Easy-Games
topic[1][0][2] = "Gta"; //
topic[1][1][0] = "Skyrim"; // med games
topic[1][1][1] = "Hitman";
topic[1][1][2] = "Batman";
topic[1][2][0] = "Minecraft"; // hard games
topic[1][2][1] = "Zombieville";
topic[1][2][2] = "BoderLands";
topic[2][0][0] = "Acura"; // easy cars
topic[2][0][1] = "Audi";
topic[2][0][2] = "Bmw";
topic[2][1][0] = "Bentley"; // med cars
topic[2][1][1] = "Buggati";
topic[2][1][2] = "Honda";
topic[2][2][0] = "Lamborghini"; // hard cars
topic[2][2][1] = "Rolls-royce";
topic[2][2][2] = "Mercedes";
if (cat.equalsIgnoreCase("places")) {
if (diff.equalsIgnoreCase("easy"))
name = topic[0][0][location];
if (diff.equalsIgnoreCase("medium"))
name = topic[0][1][location];
if (diff.equalsIgnoreCase("hard"))
name = topic[0][2][location];
}
else if (cat.equalsIgnoreCase("games")) {
if (diff.equalsIgnoreCase("easy"))
name = topic[1][0][location];
if (diff.equalsIgnoreCase("medium"))
name = topic[1][1][location];
if (diff.equalsIgnoreCase("hard"))
name = topic[1][2][location];
}
if (cat.equalsIgnoreCase("cars")) {
if (diff.equalsIgnoreCase("easy"))
name = topic[2][0][location];
if (diff.equalsIgnoreCase("medium"))
name = topic[2][1][location];
if (diff.equalsIgnoreCase("hard"))
name = topic[2][2][location];
}
return name.toLowerCase();
}
public static void main
(String[] args
) {
Scanner kbd
= new Scanner
(System.
in); System.
out.
println("Enter diff: "); System.
out.
println("Enter cat: "); System.
out.
println("Choosen word: " + getWords
(cat, diff
)); }
}