User Profile

Collapse

Profile Sidebar

Collapse
bucketbot
bucketbot
Last Activity: Jun 6 '07, 05:50 PM
Joined: May 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bucketbot
    replied to object declarations
    in Java
    ok, lets say its type casted. i dont understand what the xObject becomes if the yObject is stored into it.

    thanks
    See more | Go to post

    Leave a comment:


  • bucketbot
    started a topic object declarations
    in Java

    object declarations

    just a quick questions that has been bugging me for a few days:

    lets say i have some classes X and Y, and in some other part of the program, I make this declaration:

    X xObject = new yObject();

    What does that do?

    thanks
    See more | Go to post

  • bucketbot
    replied to System.arraycopy(...)
    in Java
    I wouldn't be posting here if I hadn't already looked at it. I don't understand how the parameters work for it. for ex:

    system.arraycop y(the source array, the index you want to start copying from, the destination array, ?, ?)

    along with those 2 question marks, where do you make the destination array?
    See more | Go to post

    Leave a comment:


  • bucketbot
    started a topic System.arraycopy(...)
    in Java

    System.arraycopy(...)

    If I have an array A and I wanted to copy it into a larger array, how would I do that with the arraycopy(...) method?

    thanks
    See more | Go to post

  • bucketbot
    replied to Shorthand for System.out.print(...);
    in Java
    well i work a lot in eclipse. how do u do it?...
    See more | Go to post

    Leave a comment:


  • bucketbot
    started a topic Shorthand for System.out.print(...);
    in Java

    Shorthand for System.out.print(...);

    I've seen some people type a few letters (3 or 4) and then something else, and it automatically writes a "System.out.pri ntln();" on the line for you, and I was just wondering what you have to do to do that.

    thanks
    See more | Go to post

  • bucketbot
    replied to implementing a graph
    in Java
    we constructed a min-heap based priority queue, and now we have to design a graph (for use with Dijkstras algorithm) using that PQ. I just don't understand how to construct the graph. So far, I have a Graph class, a Vertex class, and an Edge class. If my vertex class is simply a name and an array of incident edges, then what is my Edge class?

    the end product is suppose to be something that reads in input (in this case, a sort of map),...
    See more | Go to post

    Leave a comment:


  • bucketbot
    replied to implementing a graph
    in Java
    i forgot to mention that the graph needs to be an adjacency list, and that it should be implemented with an ArrayList...
    See more | Go to post

    Leave a comment:


  • bucketbot
    started a topic implementing a graph
    in Java

    implementing a graph

    Can anyone explain how to code a graph based on a priority queue? As in, what would I need to do in order to successfully implement a graph? thanks
    See more | Go to post
No activity results to display
Show More
Working...