Tuesday 15 September 2015

java - take first characters of edittext -


I have today a computer program that works with code, these codes are entered by the user, now I I'm busy working on Android. To do the same as computer programs, these codes are so common in our company that I can not get around them.

The codes look like W07 or START12345,00W and start to show what kind of action the program has to do

As the user puts his code into an edit box, I want to take the first letter of my input to define the action after that how can I do this?

  stringbilder result = new stringbilder (); To (four c: editText.getText (). ToString (). ToCharArray ()) if (Character.Issender (C)) result.append (c); And break; String code = result Tosting ();    

No comments:

Post a Comment