Java Class
Learn Java at javaclass.info
theorem here
Below is an example of an array of Strings. This array can store 400 Strings! We only used the first three spots.
String[] anArrayofStrings = new String[400];
anArrayofStrings[0] = "1" ;
anArrayofStrings[1] = "aldjlajld;";
anArrayofStrings[2] = "djka";
Uninitalized elements : In our example above there are 397 slots that we haven't yet inialized. The default value of an uninitalized object is null. Since a String is an Object in Java it will have this default value of nul. See the example below
System.out.print( anARrayofStrings[3] )
will print null
Site Map | Resources | Online Math Games | Fraction Games Online | TOS