Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2009, 09:23 AM
Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
ooopppsss is on a distinguished road
Default xxxxxxxxxxxx
.................................................. .................................................. ..............................

Last edited by ooopppsss; 06-28-2009 at 04:31 PM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-25-2009, 09:50 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
String (Java Platform SE 6)
read split method
read replace method
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-25-2009, 11:06 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
I think first of all you should have a design for this. Do you have any?

Steps are something like this, in a simple way.
1. Have to read the user inputs from the user.
2. Have to detect each key-stroke.
3. Have to count all valid(means that key is type or not) key-strokes.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-25-2009, 11:19 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Okay, now you can read the user input within your code shown above. Just think how you can count number of characters. Any idea?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
final String currentWorld = "Java Forums"; String.format("Hello %s", currentWorld); mcfrog Introductions 0 04-02-2009 08:02 PM
Java String to html var tman563 JavaServer Pages (JSP) and JSTL 1 02-17-2009 03:59 PM
Error: cannot resolve symbol' on Person (java.lang.String, java.lang.String) baltimore New To Java 2 09-18-2008 08:30 AM
Using java.util.Scanner to search for a String in a String Java Tip Java Tips 0 11-20-2007 05:59 PM
Java String levent Java Tutorials 2 07-29-2007 08:19 AM


All times are GMT +2. The time now is 04:33 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org