これは、ランダムな名前を作成するために作成したクラスですが、1行でエラーが発生し続けます(メインクラスではありません)
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 /\
}