Find and remove last character in a string
by Nithya[ Edit ] 2012-05-21 12:21:46
allnum="abc,test,good,best,";
lastchar = allnum.charAt(allnum.length - 1 ); //finds last character in the string(allnum)
allnum = allnum.substring(0, allnum.length-1); //removes the last character