Well, "It's been a long time since I rock and rolled", as the song goes. So after a lengthy hiatus, i'm back. Full of cobwebs.
I got as far as completeing and having marked, the 4th (or 5th?) Java assignment.
So i'm trying to pick up where i left off.
Anyway, i've a problem folks, it concerns (I think) the use of the "Return" word.
Below is a short program i've copied out of a book:-
What I don't understand is, in the main class, I call the method "setDim", like so.....
mybox1.setDim(10, 20, 15);
And this method takes 3 parameters, right?
Well, after that, the method "volume" is called on. OK.
From that point on, how do we then manage to arrive back in the main class
Any help would be greatly appreciated. Cheers in advance