I am trying to solve the following problem but how do write the method that accepts String as an argument?
Write a method named printReverse
printReverse
private static String reverseString(String str) { String revString = ""; for(int i=str.length()-1;i>=0;i--) { revString = revString + str.charAt(i); } return revString; }