Hey im trying to get a random output from a 2 Dimensional String Array but it keeps giving me the output "[Ljava.lang.String;@3fee733d"
public class VKSimple {
public static void main(String[] args) {
String[][] vk = {{"Hallo", "Hello"},
{"Haus", "House"},
{"Auto", "Car"}};
Random r=new Random();
int randomNumber=r.nextInt(vk.length);
System.out.println(vk[randomNumber]);
}
}
would appreciate if someone could help me