MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / Main

Class Main

Hackerrank_problems/2D Arrays/solution.java:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.company;
2
3public class Main {
4 public static void main(String[] args) {
5
6// Creating 2-D array
7 int[][] array = {{10,20,30},{40,50,60}};
8// Extracting elements using for-each loop
9 for (int[] i : array){
10 for (int j : i){
11 System.out.println("Element in array is : " + j);
12 }
13 }
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected