How to print the reverse of the String java is object orientated language without using any predefined function like reverse()?
java is object orientated language
reverse()
How about a simple traverse from the end of the string to the beg:
void printRev(String str) { for(int i=str.length()-1;i>=0;i--) System.out.print(str.charAt(i)); }