I have been stuck for about an hour and after googling and doing research I could't get my code to run. It shows not a single error and when I press run it just opens debug and does nothing. I am using eclipse. I am trying to create a list of 10 objects and to give them random numbers.
class test {
public static void main(String[] args){
int a [] = new int[9];{
for (int i = 0; i < a.length; i++)
a[i] = a[(int)(Math.random()*70+15)];
for (int elem : a){
System.out.println(elem);
};
}}}