Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 7:54 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 3 posts ] 
Author Question
 Question subject: Can you help me with this ?
PostPosted: Tue Feb 01, 2011 4:18 am 
Offline
Newbie
User avatar

Joined: Tue Feb 01, 2011 4:05 am
Posts: 4
Has thanked: 0 time
Have thanks: 0 time

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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Can you help me with this ?
PostPosted: Thu Feb 03, 2011 1:41 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 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);
            }
        }

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Can you help me with this ?
PostPosted: Fri Feb 04, 2011 6:00 am 
Offline
Newbie
User avatar

Joined: Tue Feb 01, 2011 4:05 am
Posts: 4
Has thanked: 0 time
Have thanks: 0 time
yah . something like that . actually it is more like this -->http://uva.onlinejudge.org/external/8/895.html


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 3 posts ] 
Quick reply


  

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google [Bot] and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team