Popular Posts

There was an error in this gadget

Apr 29, 2012

Remove white space and delete one character in android

            String k = guessTextView.getText().toString();

            sum  = k.replaceAll(" ", "%20");
            StringBuilder stringBuilder=new StringBuilder(80);
           
            stringBuilder.append(sum);
                      
            sum = stringBuilder.deleteCharAt(stringBuilder.length()-1).toString();
           
            guessTextView.setText(sum);

No comments:

Post a Comment