Whats wrong with this code and cant print to me an array with this numbers? { 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75 }.
i tried many things but nothing worked lol. i tried to do it with different methods cause i know that void doesnt return value.. but nothin!
public class Test {
public static void main(String[] args) {
public static void MakeArray(){
double a[] = new a[];
for(i = 0; i<8; i=i+1){
a[i]=i/4;
}
return a;
}
System.out.println(a);
}
}
--- Update ---
solved lock it