Donate SIGN UP

How to deal with reference type variables in Java

Avatar Image
Rodge2 | 17:13 Mon 14th Mar 2011 | Computers
3 Answers
If I want to print out the value of a reference type variable in Java, using: System.out.print(); How do I do it? I just can't remember and keep getting the actual reference itself, instead of the value.
Gravatar

Answers

1 to 3 of 3rss feed

Best Answer

No best answer has yet been selected by Rodge2. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Not well up on Java, but don't you just refer to the value property of the reference?
i.e x.value dereferences x.
Don't know java maybe check here http://docstore.mik.u...-ent/jnut/ch02_10.htm
Question Author
Thanks guys for your help.

1 to 3 of 3rss feed

Do you know the answer?

How to deal with reference type variables in Java

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.