Hi Naveen,
Made little changes to your code. Please try the code given below
public static String returnStr(String output) { String output1=""; int l; if (output!=null && !output.equals("") ) { l=output.length(); if(l>=12) { output1 = output.substring(12,l); } } return output1; }
Regards
Anupam
Message was edited by: Anupam Ghosh