Total members 11894 |It is currently Fri Nov 22, 2024 3:28 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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)..




Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time

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);
            }
        }


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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


Author:
Newbie
User avatar Posts: 4
Have thanks: 0 time
Post new topic Reply to topic  [ 3 posts ] 

  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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com