First there seems to be something wrong with the logic
wordd = word.charAt(length - numword);
laeword = lae.charAt(numlae);
while(wordd == laeword)
{
System.out.println("yes");
Type: Posts; User: pbrockway2
First there seems to be something wrong with the logic
wordd = word.charAt(length - numword);
laeword = lae.charAt(numlae);
while(wordd == laeword)
{
System.out.println("yes");
You could declare the String stringbw as an empty string and use your loop to append the characters to it instead of (or as well as) printing them.
Alternatively if you don't want to actually...