1/Define the method to reverse the string public static void RevString(String str) *Create for loop to display the string reverse*/ for (int i-str.length)-1;i>-0;i--) //Print the character in the string System.out.print (str.charAt(i)) } }
{}