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

Thread: hello guys...I've posted a question before... but this one is more clear and logical

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hello guys...I've posted a question before... but this one is more clear and logical

    I wanna create a list using an array data structure and link list data structure as well.

    this list is about Tetris Game which keeps the userís name, level, score and lines. like this below:-

    Name | Level | Score | Lines
    Jazzy | 8 | 25081 | 211
    Peter | 7 24099 | 202
    Dave | 6 | 22188 | 199
    Cindy | 5 20765 | 178
    Jaskiret | 4 | 18882 | 165
    Robbie | 4 | 17339 | 145
    Elton | 3 | 14328 | 134
    Mel | 3 | 12590 | 125
    Prince | 3 | 9439 | 102
    Aaron 2 | 5628 | 88

    NOTE:-This list is only maintained for the top 10 users with the highest scores.

    If a score achieved is higher than the 10th position, then the new score will replace the old score.
    The ranking is sorted in a descending order


    Please help me...!!
    Last edited by commandor; March 25th, 2012 at 07:16 AM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,247
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: hello guys...I've posted a question before... but this one is more clear and logi

    Do you have any specific questions about your java program? If so, ask them and show the code you are having problems with.

    A thought:
    Use a SortedSet to hold the data and remove any elements past the limit.
    Last edited by Norm; March 25th, 2012 at 09:25 AM.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: hello guys...I've posted a question before... but this one is more clear and logi

    actually i don't have any code, but i wanna know how to start the program, cuz i'm confused about link list principle in other words, how can i insert and delete the information about the users.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,247
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: hello guys...I've posted a question before... but this one is more clear and logi

    Have you read the API doc for the LinkedList class?
    That will explain how to use its methods.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: hello guys...I've posted a question before... but this one is more clear and logi

    thanx Norm, I'll read it and try to do my best, also I'll try to write a code to put it here.

Similar Threads

  1. Logical error and having trouble HELP!
    By DeathStrike in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 3rd, 2011, 08:02 PM
  2. I have a logical error
    By n00b in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 30th, 2011, 03:52 PM
  3. Logical Operators
    By truebluecougarman in forum Java Theory & Questions
    Replies: 3
    Last Post: January 22nd, 2011, 06:26 PM
  4. While (logical confusing output)
    By chronoz13 in forum Loops & Control Statements
    Replies: 4
    Last Post: December 20th, 2009, 01:17 AM
  5. Proper output for Non preemptive scheduling problem
    By haygaurav in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 4th, 2009, 07:58 AM