Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Clear all non alphabetical figures in a String

Tue Feb 01, 2011 4:18 am

I have a project that needs to clear all non-alphabetical figures in a String and separating it every 60 characters(new line after 60 characters)..



Re: Can you help me with this ?

Thu Feb 03, 2011 1:41 pm

something like this :
Code:

     String str="dfae534&34(4645";
        String newStr="";
        for(int i=0;i<str.length();i++){
            if(str.charAt(i)<96&&str.charAt(i)>65){
                newStr+=str.charAt(i);
            }
        }


Re: Can you help me with this ?

Fri Feb 04, 2011 6:00 am

yah . something like that . actually it is more like this -->http://uva.onlinejudge.org/external/8/895.html

Post a reply
  Related Posts  to : Clear all non alphabetical figures in a String
 c++ alphabetical and numerical sorting program     -  
 avoid showing/printing figures, text after conclusion     -  
 Exception is not clear     -  
 MATLAB clear memory     -  
 usage of <br> tag clear attribute     -  
 Clear specific form fields using JQuery     -  
 show figures side by side using subfigure     -  
 recursive string reversal- reverse string     -  
 check if string ends with specific sub-string in php     -  
 Splitting a String Based on a Found String     -