Please help me solve these Java Problems

Hi guys, my name is fritzy and im from the philippines. ;)

Our teacher Gave us these problems in our java class and said she wont give us our prelims grades if we dont solve them. :(

Im really new with Java and im having a hard time solving them. I tried to but the problem says that i should use Methods and as i try to understand it, i just couldnt get it :confused:

So if any of you kind gentlemen could enlighten me, i would really appreciate it.:p

write a java program whose main() method hold two integer variables. Assign values to the variables. create two additional methods, sum() and difference().

that compute the sum and difference between the values of the two variables, respectively. each method should perform the computation and display the result

in turn call each of the two methods from main() passing the values of two integer variables

Re: Please help me solve these Java Problems

Quote:

Originally Posted by

**fritzy19** So if any of you kind gentlemen could enlighten me, i would really appreciate it.

Start here: The Java™ Tutorials

db

Re: Please help me solve these Java Problems

Re: Please help me solve these Java Problems

Quote:

Originally Posted by

**fritzy19** help

Here's some more help: How to ask questions the smart way

db

Re: Please help me solve these Java Problems

<spoonfed solution deleted>