Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24
  1. #21
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    You want the program to be easy for the user so print total after calling the method on it in the else if 6 clause.

  2. #22
    ls7897 is offline Member
    Join Date
    Nov 2010
    Posts
    38
    Rep Power
    0

    Default

    Quote Originally Posted by sunde887 View Post
    You want the program to be easy for the user so print total after calling the method on it in the else if 6 clause.
    Added that and works, thanks! :)

    I've got to design the GUI for the calculator (which I'll start next) so not sure if I'll need the system.out.print statements as the running total should be shown anyway!

  3. #23
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Print lines help you find errors a lot of the time. I'm actually working on a GUI based calculator right now I do however; have a slightly different backend but I cam help you out when you start it.

  4. #24
    ls7897 is offline Member
    Join Date
    Nov 2010
    Posts
    38
    Rep Power
    0

    Default

    Quote Originally Posted by sunde887 View Post
    Print lines help you find errors a lot of the time. I'm actually working on a GUI based calculator right now I do however; have a slightly different backend but I cam help you out when you start it.
    Great, thank you! I think I'll go get some sleep now! :p

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Java Calculator Square Root Pleas Help
    By TommyR in forum Advanced Java
    Replies: 6
    Last Post: 02-03-2011, 04:28 PM
  2. Find the square root with a particular method
    By roud9 in forum New To Java
    Replies: 2
    Last Post: 09-28-2010, 12:39 AM
  3. square root and prime numbers
    By roud9 in forum New To Java
    Replies: 16
    Last Post: 09-22-2010, 04:20 PM
  4. Simple square root problem!
    By nortski in forum New To Java
    Replies: 7
    Last Post: 04-01-2009, 03:11 PM
  5. Creating a New Method for Square Root Loop
    By SapphireSpark in forum New To Java
    Replies: 14
    Last Post: 02-25-2009, 02:21 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
  •