This is incorrect. The parameter "myResult" will be filled locally on line 3 but that value will never make it back to the caller via "myResult", only by the return of the method. So, just remove "myResult" from this method and you'd be good to go.
This is still uses "myResult". Instead, just send back the results of num1*num2;
While it's not a hard and fast rule, Java programmers have come to think of methods that begin with 'get....' as a "getter" used to access the fields of your class. Your method "getResult" would be easier to read if it was renamed "calcResult".
If I understood this correctly, you are asking the user to input two (2) integers, multiply these two numbers together, and store the result. Rinse and repeat.
Check the syntax on the println method.
Of course, We Are Not a Codemill, but this should get you on the right path, and hopefully a clear this up for you, Sorry about the crappy formatting -- something to do with the way I did the copy, cut, and paste.
There are worse crimes than burning books. One of them is not reading them. Ray Bradbury
Thanks for all the help so far, I'm very grateful,was never expecting the answer to be given to me out right, as that wouldn't be good as I wouldn't learn,I just wanted to be put on the right track, I think its possible ye misunderstood what I'm asking or I didn't explain it very well, so I will try to explain it better, if you have one method that does a calculation and you want the answer of that calculation to be passed to another method to be used in another calculation, how would I go about doing this? even if you could suggest reading material, I would be grateful.
1. Save the value in a variable.
2. Pass values as parameters to methods.
That's it. These are the Lego blocks. There's no set recipe that we can point you to. It all depends on exactly what you want to do. It's up to you to find the ways to put these together to do what you want to do. Another analogy is that these are the notes, each note will play a tone. It's up to you to arrange the notes in a way that forms a tune and create some music of your own.