HomeSelenium

Selenium Interview Question 49 – How to access all elements inside int[][] a = {{5,2,9},{4,6,8}}; using for loop in Java?

Selenium Interview Question 49 –  How to access all elements inside int[][] a = {{5,2,9},{4,6,8}}; using for loop in Java?

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

How to access all elements inside int[][] a = {{5,2,9},{4,6,8}}; using for loop in Java?

Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:

Note: Don’t forget to subscribe to my Youtube channel here: Click here

Notes used for explanation in this Youtube video are provided after the video:

Notes used in the above Youtube Video:

The following is the program for accessing all the elements in the two dimensional array:

for(int i=0;i<a.length;i++) {

  for(int j=0;j<a[i].length;j++) {

    System.out.print(a[i][j]+" ");

  }

  System.out.println();

}

Next Steps:

  • > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
  • > Check complete Selenium Interview Questions list here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Arun Motoori

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

On a mission to contribute to the Software Testing Community in all possible ways.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp