Home » questions » Java Question: How do I get access an object's variables?
Java Question: How do I get access an object's variables?
Say I have a class, and I want to pass an object.
Time t.
How would I go about accessing variables h and r inside the object?
public int elapsedSince(Time x, Time y)
Both X and Y are objects.
I need to get Hours and Minutes out of both of them.

Answers
Ed
On 2006-08-09 10:15:35
rickunlimited1952
On 2006-08-09 09:35:48
Kryzchek
On 2006-08-09 09:46:59