0 | |
By: [email protected] On: Mon Dec 05 01:07:19 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Mon Dec 05 09:39:34 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
wswad | 0 |
By: [email protected] On: Wed Dec 21 12:42:53 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Wed Dec 21 16:17:05 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
public class ReverseString { public static void main(String[] args) { String s1="Strings are Immutable"; String strArr[]=s1.split(" "); String str1=strArr[0]; String str2=strArr[1]; String str3=strArr[2]; String strFinal=""; for (int i=str1.length()-1;i>=0;i--) { strFinal=strFinal+str1.charAt(i); } strFinal=strFinal+" "; for (int i=str2.length()-1;i>=0;i--) { strFinal=strFinal+str2.charAt(i); } strFinal=strFinal+" "; for (int i=str3.length()-1;i>=0;i--) { strFinal=strFinal+str3.charAt(i); } System.out.println(strFinal); } } | 0 |
By: [email protected] On: Mon Jan 09 13:48:49 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
public class ReverseString { public void reverse(String args){ String temval = ""; int len; len = args.length(); for(int i = len;i>0;i--){ temval += args.charAt(i-1); } System.out.println(args+"--->Reverse STRING---> "+temval); } } | 0 |
By: [email protected] On: Mon Feb 13 18:46:16 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |