Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need Help For My Program

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post Need Help For My Program

    Please. I really need some help. I want to design a program that reads all the words from a file with a dictionary of english words, after that the program asks for part of the word you are looking for and finds all of the words with part you put in. I do not know how to get started at all and I would appreciate some help. Thankyou


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Need Help For My Program

    Hello ubaral,

    Welcome to the forums.

    You could read in the file using the Scanner class. See - http://www.javaprogrammingforums.com...ner-class.html

    Take a look here, there are lots of code examples - Java Code Snippets and Tutorials

    See if you can make a start and get back to us.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. The Following User Says Thank You to JavaPF For This Useful Post:

    ubaral (March 9th, 2011)

  4. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need Help For My Program

    Thankyou, but I know how to use the Scanner class to look through my text file for the specific string I want. Ive done that, but my problem is that I want to be able to search for just a small part of a word in a txt file and the program shows me all the words with that small part of the word I inputed. I think I need to use substring method, but how do i go about doing this??
    THANK-YOU

Tags for this Thread