Nope.... |
||
![]() Ret. Gen D-Cypell You have put the null pointer back. str = null will give you null pointer on the first line. On 2005-02-26 16:51:44, dopel wrote > Maybe? > > >public static String Backwards(String str){ > str = str.trim(); > if(str == null || str.equals("")){ > //Probably should throw some type of exception here > return ""; > } > > StringBuffer newString = new StringBuffer(str); > return newString.reverse().toString(); >} > Replies:
|
||
| CyberArmy::Forum v0.6 Generated In 0.02286 seconds |