Question: Java! 1. What is the purpose of int i and int j in the for-loop? // Initialize a two-dimensional array. class Squares { public static
Java!
1. What is the purpose of int i and int j in the for-loop?

// Initialize a two-dimensional array. class Squares { public static void main(String args[]) { int sqrs [] [] { { 1, 1 }, { 2, 4 }, { 3, 9 }, { 4, 16 }, { 5, 25 }, Notice how each row has { 6, 36 }, its own set of initializers. { 7, 49 }, { 8, 64 }, { 9, 81 }, { 10, 100 } int i, j; for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
