Here's a class i made to create random names but one line keeps getting an error (not a main class)
public class nameGenerator {
String [] namesFirst= {"Micheal","Stewart","Robbinson","Tang"};
String [] namesMiddle= {"Jordan","James","Stanly","Choo" };
String [] namesLast= {"IV","Lee","Persson"};
int a = namesFirst.length;
int b = namesMiddle.length;
int c = namesLast.length;
int x = (int) (Math.random()* a);
int y = (int) (Math.random()* b);
int z = (int) (Math.random()* c);
System.out.println(namesFirst[x] + namesMiddle[y] + namesLast[z]);
//the error is here /\
}