im new to java.
the standard code that is created after i created a new project in netbeans is:
package helloworldapp;
public class Main {
public static void main(String[] args) {
int[] array = new int[10];
array[9] = 1;
System.out.println(array[9]);
}
}
so you see that it uses the System class, but i dont see that class has been imported. Is there another code somewhere that does that? How can i use it if its not imported.
The System class is, along with everything else in
java.lang, imported automatically. Other classes you probably use that are automagically imported includeStringandException.