• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - TooTallDawg

#1
Java Programming / PriorityQueue
July 17, 2006, 10:54 AM
can someone give me a simple explaination  of what a PriorityQueue actually does? 
#2
Java Programming / Re: testing stacks.
July 17, 2006, 10:53 AM
would you prefer this:

    public Product getProduct() {
        if(!fragile.empty()) {
            return fragile.pop();
        } else if(!normal.empty()) {
            return normal.pop();
        } else if(!heavy.empty()) {
            return heavy.pop();
        }
        return null;
    }
#3
Java Programming / Re: testing stacks.
July 10, 2006, 09:55 PM
thanks.  that code works just fine.
#4
Java Programming / Re: Java Code for referance
July 10, 2006, 02:14 PM
pscode.com is perfect.   thanks!

;D
#5
Java Programming / testing stacks.
July 10, 2006, 02:12 PM
i'm trying to test 3 stacks.  below is a method that test only 1 stack.  can anyone help me code this method in order for it to test all 3 stacks?

private Stack<Product> fragile;
private Stack<Product> normal;
private Stack<Product> heavy;
.
.
.
.
public Product getProduct() {
       
    if(fragile.empty()) {
            return null;
    } else {
            return fragile.pop();
    }
}

#6
Java Programming / Re: Java Code for referance
July 03, 2006, 01:31 PM
im not talking about the API files......i was wanting to see some actual JAVA code to compare.  most of my searches bring back API's.
#7
Java Programming / Java Code for referance
July 03, 2006, 12:54 PM
are there any websites i can referance that provide JAVA code?  for example, i'm trying to learn how to use the Collection Interface and program my own class implimenting the methods.