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

Thread: AVL tree confusion, syntax confusion, just general confusion really...

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

    Default AVL tree confusion, syntax confusion, just general confusion really...

    I am quite new to java and my professor kind of dumped this project on us and has done a very poor job of answering our questions and making sure we understand what we are doing.

    we are supposed to implement a set class and a map class using the AvlTree class below. we are supposed to use these to make a program that takes a text file and prints a concordance of all words in the text file and a list of all the line numbers on which they appear.

    http://users.cis.fiu.edu/~weiss/dsaa...e/AvlTree.java

    I don't want anyone to do my project for me but I just need some direction. Am I supposed to like make a Map with the words as keys and then the values are actually sets of all the numbers. Are the maps and sets supposed to be extensions of the AvlTree class, if so how am I supposed to Order a Map if the keys are not numerical?

    it would also help tremendously if someone could just explain what this means

    public class AvlTree<AnyType extends Comparable<? super AnyType>>

    if nothing else just that would really help. I don't understand the syntax at all and as such I'm just bewildered by this class. I understand the ideas behind an AVL tree and I can draw the diagrams all day long but the syntax of the code is just beyond what we have actually learned yet.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: AVL tree confusion, syntax confusion, just general confusion really...

    Please post the code you are having problems with here on the forum.

    See the tutorial about Generic coding: Lesson: Generics (Updated) (The Java™ Tutorials > Learning the Java Language)
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Confusion in JAVA.................???
    By gbiz1124 in forum AWT / Java Swing
    Replies: 1
    Last Post: October 16th, 2012, 11:39 AM
  2. Confusion about inheritance
    By MeteoricDragon in forum What's Wrong With My Code?
    Replies: 6
    Last Post: May 17th, 2012, 06:17 PM
  3. help 2d array confusion
    By Macgrubber in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 29th, 2010, 04:30 PM
  4. ArrayList confusion
    By Stormin in forum Collections and Generics
    Replies: 7
    Last Post: August 13th, 2010, 04:58 PM
  5. Confusion with C/C++
    By Eric in forum Java Applets
    Replies: 0
    Last Post: December 22nd, 2008, 02:18 PM