Results 1 to 4 of 4

Thread: Java String

  1. #1
    ooopppsss is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Default xxxxxxxxxxxx

    .................................................. .................................................. ..............................
    Last edited by ooopppsss; 06-28-2009 at 03:31 PM.

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    5

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,374
    Blog Entries
    1
    Rep Power
    18

    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.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,374
    Blog Entries
    1
    Rep Power
    18

    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?

Similar Threads

  1. Java String
    By levent in forum Java Tutorial
    Replies: 6
    Last Post: 05-14-2010, 09:26 AM
  2. Replies: 0
    Last Post: 04-02-2009, 07:02 PM
  3. Java String to html var
    By tman563 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 02-17-2009, 02:59 PM
  4. Replies: 2
    Last Post: 09-18-2008, 07:30 AM
  5. Replies: 0
    Last Post: 11-20-2007, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •