Hi all;
how can i find equal string in 2D array in java in this program,,
i mean in this code i have 2D array 2 rows and 4 columns,for example in my code
the equal string is "orange" ,,so how can search for any equal string in 2D array ??
public static void main(String[] args) {
String[][] t={{"hellow","happy","life","orange"},{"blue","orange","door","apple"}};
for (int i = 0; i < t.length; i++) {
for (int j = 0; j < t[i].length; j++) {
System.out.print(t[i][j] + " ");
}
System.out.println();
}
}}