Tutorial by Examples

public class CreateAnArray{ public static void main(String[] args){ // Creates a new array of Strings with a length of 3 // This length cannot be changed later String[] myStringArray = new String[3]; myStringArray[0] = "Hello"; // Java array ind...
public class CreateArrayWithValues { public static void main(String[] args){ // Initializes an array of Strings with values String[] myArray = {"this", "array", "has", "six", "initial", "values"}; System.out....

Page 1 of 1