help needed urgently project work
nayomi21 (1)

an interactive java code asking a client to input a string and to test if the string is a palindrone

You are viewing a single comment. View All
mwilki7 (193)

@AdobeZev
To add on to this answer, if you want an easy way to reverse a string in Java:

String mystr = "Hello";
String reversed = (new StringBuilder(mystr)).reverse().toString();

must have import java.lang.StringBuilder; imported first though.