If you're a Java developer and learning pointers I recommend using the Java Visualizer.
https://cscircles.cemc.uwaterloo.ca/java_visualize/
Copy and paste the class you're working on. Include a main() to act as a test driver and then let the Java Visualizer step through your code showing you exactly what is going on.