Horje
nested for loop java Code Example
nested for loop java

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

        String names[][] = {
                { "Jasmine", "jasmine123" },
                { "lyka", "lyka123" },
                { "marbie", "marbie123" }
        };
        for (int row = 0; row < names.length; row++) {
            for (int col = 0; col < names[row].length; col++) {
                System.out.println(row + ":" + col);
            }
            System.out.println();
        }

    }
}
nested for loop java

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

        for (int x = 0; x < 5; x++) {
            for (int y = 0; y < 5; y++) {
                System.out.println(y);
            }
            System.out.println();
        }
    }
}




Java

Related
treeset order in java Code Example treeset order in java Code Example
SpringBootStarter maven dependency Code Example SpringBootStarter maven dependency Code Example
https://stackoverflow.com/questions/21424560/how-can-i-add-a-pair-of-numbers-to-an-arraylist Code Example https://stackoverflow.com/questions/21424560/how-can-i-add-a-pair-of-numbers-to-an-arraylist Code Example
java node class Code Example java node class Code Example
android studio call on a string Code Example android studio call on a string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7