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 4 of 4

Thread: need help finding code in javadoc

  1. #1
    Member
    Join Date
    Sep 2012
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default need help finding code in javadoc

    Hello there

    i have some names in a txt file that i put in jGrasp, then i want to make the names in alphabetically order in a other txt file.
    is there a command to do that? i have been looking in javadoc but i can't seem to find it anywhere :s
    can someone help me find it or know how to that?

    i'm would really like to get some help so i know where i can find the code in javadoc


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,101
    Thanks
    52
    Thanked 2,285 Times in 2,256 Posts

    Default Re: need help finding code in javadoc

    There are some methods that will help you do that.
    If the lines have been read into a collection of some kind, the Collections class has sort() methods you could use to sort the lines.
    If the lines are in an array, the Arrays class has sort() methods.
    If you don't understand my answer, don't ignore it, ask a question.

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

    lf2killer (October 9th, 2012)

  4. #3
    Member
    Join Date
    Sep 2012
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: need help finding code in javadoc

    Quote Originally Posted by Norm View Post
    There are some methods that will help you do that.
    If the lines have been read into a collection of some kind, the Collections class has sort() methods you could use to sort the lines.
    If the lines are in an array, the Arrays class has sort() methods.
    ye okay :/ but isn't there a way to do it without arrays? :S

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,101
    Thanks
    52
    Thanked 2,285 Times in 2,256 Posts

    Default Re: need help finding code in javadoc

    do it without arrays
    Use an ArrayList
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to generate javadoc from XXXsource.zip
    By JavaCup in forum Java Theory & Questions
    Replies: 2
    Last Post: May 4th, 2012, 01:29 AM
  2. Creating a javadoc help please.
    By jerryg in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 8th, 2012, 09:10 AM
  3. Double always == 0! And a Javadoc issue! (Using NetBeans)
    By CameronFaust in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 11th, 2011, 12:22 AM
  4. How do you generate javadoc?
    By javapenguin in forum Java IDEs
    Replies: 15
    Last Post: November 27th, 2010, 08:12 PM
  5. Need Help - Factoring & Prime Finding Code
    By prodigytoast in forum Algorithms & Recursion
    Replies: 5
    Last Post: November 5th, 2009, 06:38 AM