EDIT** Thank you all for the help! It is much appreciated!
sorry for all of the advanced programmers that have to look at this and scoff at the newbie, but I'm trying.
Can anyone tell me how to call the method to reverse the string and print out the text that it returns? Much thanks, guys!
Here is my code
import java.util.Scanner;
public class Palindrome {
public static void main(String [] args) {
System.out.println("Please enter the text you would like reversed.");
String reverseText
System.out.printlne(reverseText);
}
public String reverseString() {
@SuppressWarnings("resource")
Scanner s = new Scanner(System.in);
String text = s.nextLine();
String reverseText = new StringBuffer(text).reverse().toString();
return reverseText;
}
}