Blogger

Delete comment from: Java67

Anonymous said...

class nit1{
public static void main(String [] args)
{
// String input = "AAABBB CCCDDD EEEFFF" ;
//String input = "ZYXWVUTSRQPONMLKJIHGFEDCBA" ;
String input = "1234567890" ;

String s[]=input.split(" ");
//System.out.println(s[2]);
for(int i=0;i=0;j--)
{
System.out.print(n[j]);
}
System.out.print(" ");
}
}
}

Nov 8, 2017, 11:49:55 AM


Posted to How to Reverse String in Java with or without StringBuffer Example

Google apps
Main menu