Java Method To Remove All The Numbers From A Text

If You Want To Separate Character Values And NumericValues From A Given Text :

public String SelectString(String Text){
    String point , String="";
    int len = Text.length();
    int a =1;
for(int i=0;i<=(len-1);i++){
    point = Text.substring(i,a);
        int find = Integer.parseInt(point);
    } catch(Exception Number){
        String = String + point;
    a = a+1;   
    return String;

this method returns characters deleting all the numeric values.

Leave a Reply

Make sure you tick the "Notify Me" box below the comment form to be notified of follow up comments and replies.