Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Understanding pointers

807598Oct 2 2006 — edited Oct 5 2006
I've got a method which does something to an array.
private boolean Process(String[] DestArray) {
        // Do something to the array DestArray and return true if all goes well
}
Now, how can I tell my Java compiler that DestArray is just a pointer, and how can I retrieve the name object it is pointing to?
I want the "Process" method to do different things depending on the name (and the class it belongs to) of the object the pointer "DestArray" point to.

Where are Java pointers? How can I use them? How can I tell Java compiler I'm not passing a variabile but just a pointer? I'm a bit confused.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2006
Added on Oct 2 2006
13 comments
157 views