[Solved] Programming java to determine a symmetrical word [closed]
You can use the modulo operator to determine whether the word has an even or odd number of letters (% in java) if ( (word.length % 2) == 1 ) { //odd } else { //even } then just split the string in half and compare the reverse of the end with the front int … Read more