Write A Java Program To Reverse A String without Using String Inbuilt Function Reverse().
import java.util.scanner;
public class ReverseSplit {
public static void main(string[ ] args) {
String str;
Scanner in = new scanner(System.in);
System.out.println("enter your string");
str = in.nextLine();
string[ ] token = str.split("");
for(int i=token.length-1; i >=0; i--)
{
}
Output:
Enter your String
softwaretestinghelp
plehgnitseterawtfos
0 comments 10:
Post a Comment