What will be the output of the following program?
public class DreamsMemoriesNothings {
public static void main(String[] args) {
String[] strings = {"Dreams", "Memories", "Nothings"};
int count = 0;
for (int i = 0; i < strings.length; i++) {
String one = strings[i];
for (int j = 0; j < strings.length; j++) {
String two = strings[j];
if (i == j) continue;
for (int k = 0; k < one.length(); k++) {
for (int l = 0; l < two.length(); l++) {
if (isTrue(one, two, k, l)) {
count++;
}
}
}
System.out.print(count + "@");
}
}
}
private static boolean isTrue(String one, String two, int k, int l) {
return Character.toUpperCase(one.charAt(k)) == Character.toUpperCase(two.charAt(l));
}
}