Search:

Type: Posts; User: jocdrew21

Search: Search took 0.11 seconds.

  1. Thread: TreeMap:

    by jocdrew21
    Replies
    5
    Views
    997

    Re: TreeMap:

    Yes... but the tone of your comment makes me think I should do it again. I read it with the preconceived notion that I had to do the comparing.
  2. Thread: TreeMap:

    by jocdrew21
    Replies
    5
    Views
    997

    Re: TreeMap:

    for(int i=0;i<=100;i++)
    {
    n.number=random.nextInt(100); //add a random number to the node
    n.visited = false;//set to false inside node
    tree.put(n, i);//place node into tree
    n=new...
  3. Thread: TreeMap:

    by jocdrew21
    Replies
    5
    Views
    997

    TreeMap:

    I decided to learn a little more about TreeMap and I am having some issues and was hoping for some advice.



    package org.search.BFS;

    import java.util.Random;
    import java.util.TreeMap;
    ...
Results 1 to 3 of 3