Results 1 to 4 of 4
Thread: Java String
- 06-25-2009, 08:23 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 1
- Rep Power
- 0
- 06-25-2009, 08:50 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
- 06-25-2009, 10:06 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 06-25-2009, 10:19 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Okay, now you can read the user input within your code shown above. Just think how you can count number of characters. Any idea?
Similar Threads
-
Java String
By levent in forum Java TutorialReplies: 6Last Post: 05-14-2010, 09:26 AM -
final String currentWorld = "Java Forums"; String.format("Hello %s", currentWorld);
By mcfrog in forum IntroductionsReplies: 0Last Post: 04-02-2009, 07:02 PM -
Java String to html var
By tman563 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-17-2009, 02:59 PM -
Error: cannot resolve symbol' on Person (java.lang.String, java.lang.String)
By baltimore in forum New To JavaReplies: 2Last Post: 09-18-2008, 07:30 AM -
Using java.util.Scanner to search for a String in a String
By Java Tip in forum Java TipReplies: 0Last Post: 11-20-2007, 04:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks