User Profile

Collapse

Profile Sidebar

Collapse
mandy335
mandy335
Last Activity: Sep 30 '08, 09:17 PM
Joined: Sep 30 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mandy335
    replied to calculator HELP!!
    in Java
    Yes. Cheers! Sorry bout not using tags, am new in this.
    See more | Go to post

    Leave a comment:


  • mandy335
    started a topic calculator HELP!!
    in Java

    calculator HELP!!

    [CODE=java]public class Calculator {

    private long input = 0; // current input
    private long result = 0; // last input/result
    private String lastOperator = ""; // keeps track of the last operator entered


    /* Digit entered as integer value i
    * Updates the value of input accordingly to (input * 10) + i
    */
    public void inDigit(long i) {...
    See more | Go to post
    Last edited by r035198x; Sep 30 '08, 11:22 AM. Reason: added code tags
No activity results to display
Show More
Working...