I am having a problem with displaying statement remove or not removed if letter is
r

Next time, please use the CODE tag instead of upload the file. Also, you should post only the method you are having a problem with...

Anyway in main method, you are implementing 2 sets of if-else statements. One is before the while loop and the other is inside the while loop. From what I understand, you do not need the first set of if-else statement (before the while loop). What you need is the while loop and the inside if-else statement; however, you still need to fix what you really want to do inside it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.