This is the method which will reverse the given STRING :
public void myOwnstringReversing(String str)
{
for(int i=str.length()-1;i>=0;i--)
{
System.out.print(str.charAt(i));
}
}
CONTENT WARNING:
This is my own program.. It is for Educational purposes only. Anyone do not republish in your website will be punished offensively.
No comments:
Post a Comment
Please post your comments. Your comments make us to write more programs for you.