java - Find character in a number which is in String format -


how can find string in number?

a simple example follows

private char check() {         string sample ="1212kkk";//121hhh444 | 12-22         return 'k';//'h' | '-'      } 

if other number want return value.

how can first character ring?

try this:

string result = sample.replaceall("\\d" ,""); return result; 

Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -