hi what basically is that we can compare one string with another to see that they are the same example
String n1 = "hola";
String n2 = "hola";
we could use:
n1.equals(n2)
but my case is that I am doing an exercise of triploid words which when repeated several times forms another example "nun" if you say fast "nun" several times you would hear "jamon" I have an array wordTrifelias in which the user has entered the number of cases a case is a pair of words this pair is stored in each position for it to the number of cases it is divided by 2 to store the pair of words trifelias it is worth mentioning that a word triplet (a) can not be the same word for example if the first time the user entered say "paco" "paco" this in the output would give a NO since to be trifle should enter "paco" "cup"
palabra[0] = "monja"
palabra[1] = "jamon"
What I would like is to compare these two words but I know that with .equals () I could not because the strings are different but they have the same letters so I compare both characters to know that both have the same letter since in the output I need to return YES or No
For example, I have advanced only this: the for each that is only put in place to prove that it is stored in the positions that I wanted