Computer Science, asked by arnab200206, 1 year ago

can someone solve bluej programs for me??pls its urgent

Answers

Answered by lakhwinderkaur3
1
yes what is the question plz tell

arnab200206: wap in bluej to check if the elements in the principal diagonal of the 2d array are the smallest in the respective row and column.
lakhwinderkaur3: sorry dont know this
lakhwinderkaur3: public class TwoDimArray { public static void main(String[] args) { // Array of size 4x3 to hold integers. int[][] values = { { 10, 20, 30 }, { 40, 50, 60 }, { 70, 80, 90 }, { 11, 21, 31 } }; // Nested loops to print the array in tabular form. for (int row = 0; row < 4; row++) { for (int col = 0; col < 3; col++) { System.out.print(values[row][col] + " "); } System.out.println(); // Print new line. } } }
Similar questions