Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

reading 2d array in java


public class Sample {
    public static void main(String[] args) {

        String names[][] = {
                { "jasmine", "jasmine123" },
                { "lyka", "lyka123" },
                { "marbie", "marbie123" }
        };
        System.out.println(names[1][0]);
    }
}
 
PREVIOUS NEXT
Tagged: #reading #array #java
ADD COMMENT
Topic
Name
1+2 =