Results 1 to 5 of 5
  1. #1
    fritzy19 is offline Member
    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    Angry 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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Please help me solve these Java Problems

    Quote Originally Posted by fritzy19 View Post
    So if any of you kind gentlemen could enlighten me, i would really appreciate it.
    Start here: The Java™ Tutorials

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    fritzy19 is offline Member
    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    Default Re: Please help me solve these Java Problems

    help

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Please help me solve these Java Problems

    Quote Originally Posted by fritzy19 View Post
    help
    Here's some more help: How to ask questions the smart way

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Please help me solve these Java Problems

    <spoonfed solution deleted>
    Last edited by Fubarable; 06-29-2013 at 05:19 AM.

Similar Threads

  1. Please help me solve these Java Problems
    By saculellav in forum New To Java
    Replies: 9
    Last Post: 07-06-2014, 09:25 AM
  2. Replies: 15
    Last Post: 06-05-2011, 10:38 PM
  3. quadratic equation, problems that i can't solve
    By kourai in forum New To Java
    Replies: 2
    Last Post: 10-14-2010, 01:31 PM
  4. Replies: 5
    Last Post: 08-13-2010, 10:04 AM
  5. please I need your help to solve these problems
    By edge_5050@hotmail.com in forum New To Java
    Replies: 2
    Last Post: 12-17-2008, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •