Results 1 to 4 of 4
  1. #1
    Ajinkya is offline Member
    Join Date
    Jul 2012
    Posts
    9
    Rep Power
    0

    Question Matching numbers !

    i have a text field into which the user inputs a number up to 700, i also have a notepad file which contains numbers up to 700 and a special mesage written in front of them. example - 555: hello how are u ?
    with a button click how do i show the corresponding message the user entered ?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,235
    Rep Power
    19

    Default Re: Matching numbers !

    That's too broad a question. Split your task into its component parts.
    -- Do you know how to display a text field on screen?
    -- Do you know how to retrieve its text?
    -- Do you know how to display a button on screen, along with the text field?
    -- Do you know how to respond to a button click?
    -- Do you know how to read a file into memory?
    -- Do you know how to compare Strings for complete and partial correspondence?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Ajinkya is offline Member
    Join Date
    Jul 2012
    Posts
    9
    Rep Power
    0

    Default Re: Matching numbers !

    Quote Originally Posted by DarrylBurke View Post
    That's too broad a question. Split your task into its component parts.
    -- Do you know how to display a text field on screen?
    -- Do you know how to retrieve its text?
    -- Do you know how to display a button on screen, along with the text field?
    -- Do you know how to respond to a button click?
    -- Do you know how to read a file into memory?
    -- Do you know how to compare Strings for complete and partial correspondence?

    db
    except last two i know all

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,235
    Rep Power
    19

    Default Re: Matching numbers !

    Quote Originally Posted by Ajinkya View Post
    except last two i know all
    Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)
    String (Java Platform SE 6)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to change numbers into word numbers?
    By akeni in forum New To Java
    Replies: 13
    Last Post: 11-18-2011, 08:46 AM
  2. Replies: 11
    Last Post: 01-14-2011, 06:36 PM
  3. matching and getting xml data
    By Juuno in forum Advanced Java
    Replies: 6
    Last Post: 04-26-2009, 06:25 PM
  4. printing two smallest numbers from a series of numbers
    By trofyscarz in forum New To Java
    Replies: 2
    Last Post: 10-14-2008, 11:46 PM
  5. Help with signature matching
    By cachi in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 08:21 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
  •