i'm using Ubuntu 16, and started tutorial on java, and now i have one issue with my code, the method "Arrays.toString()", like all path "java.util.Arrays", is not found, and i really do not know, what i need to do.
This is my code:
package introtocs.arrayalgorithms;
import java.util.Arrays; // First issue here
public class FillingAndDeleting {
/**
* @param args
*/
public static void main(String[] args) {
// Filling Arrays
int[] oneThroughTen = new int[10];
for (int i = 0; i < oneThroughTen.length; i++) {
oneThroughTen[i] = i + 1;
System.out.println(Arrays.toString(oneThroughTen)); // Second here
}
}
}
Please help, i cant continue.
this code runs normally on my eclipse, i think maybe you didn't build the path, so there is a error to import the Arrays utils.