Please help in Java 1. Declare and initialize the 2 dimensional array a b c d e f g h i Next print one diagonal of this \"determinant\" on one line , and then the other diagonal, separated by a line from the first diagonal you printed. 2. Generate the two-dimensional string array: Roses are red Violets are blue I\'ve never found someone as patient As you Substitute \"but I have commitment issues\" for the last line in the above poem and print the whole poem. Solution /*Java program to print diagonals of character array and print lines of poem..*/ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be \"Main\" only if the class is public. */ public class diagArr { public static void main (String[] args) throws java.lang.Exception { // initializing two dimensional array char[][] arr1 = { {\'a\', \'b\',\'c\'}, {\'d\', \'e\',\'f\'}, {\'g\', \'h\',\'i\'} }; System.out.println(\"Printing diagonals...\"); System.out.println(arr1[0][0]+\" \\t\"+arr1[1][1]+\"\\t\"+arr1[2][2]); System.out.println(\"\ \"); System.out.println(arr1[0][2]+\"\\t\"+arr1[1][1]+\"\\t\"+arr1[2][0]); System.out.println(\"\ \"); // initializing second two dimensional array //String[][] arr2 = { {\"Roses\", \"are\",\"Red\"}, {\"Violets\", \"are\",\"Blue\"}, {\" Ive\", \"never\",\"found\"},{\"someone\", \"as\", \"patient\"},{\"As\",\"you\",\"\" }}; // initializing second two dimensional array String[][] arr2 = new String[6][3]; arr2[0][0] = \"Roses\"; arr2[0][1] = \"are\"; arr2[0][2] = \"Red\"; arr2[1][0] = \"Violets\"; arr2[1][1] = \"are\"; arr2[1][2] = \"Blue\"; arr2[2][0] = \"Ive\"; arr2[2][1] = \"never\"; arr2[2][2] = \"found\"; arr2[3][0] = \"someone\"; arr2[3][1] = \"as\"; arr2[3][2] = \"patient\"; arr2[4][0] = \"as\"; arr2[4][1] = \"you\"; System.out.println(\"Printing poem...\"); arr2[4][0]=\"but\"; arr2[4][1]=\"I\"; arr2[4][2]=\"have\"; arr2[5][0]=\"commitment\"; arr2[5][1]=\"issues\"; arr2[5][2]=\" \"; for (int i = 0; i < 6; i++) { for (int j = 0; j < 3; j++) { System.out.println(arr2[i][j]+\"\\t\"); } System.out.println(\"\ \"); }//second for loop ends }//main ends }//class ends Output: Printing diagonals... a   e  i c  e  g Printing poem... Roses are Red Violets are Blue Ive never found someone as patient but I have commitment issues .