well.. back to c and c++,we can used pointer to access the memory address of data.
But how to access memory address in java?
i do search at daniweb and found this post..
but it not happen with my program.This is my program.
Node x = new Node(new Integer(4)), y = new Node(new Integer(7)) ; System.out.println(x); System.out.println(y); //How to access the memory address of x and y?
i did try the method explain in the post by crbsathy.. which to implement .toString() to it.but it's only gonna display the value of the data.
Thanx in advance.