Search:

Type: Posts; User: Crash

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    1,293

    [SOLVED] Re: Building a calculator

    I really didn't think to much about using the loop method and i don't think it made it more complicated. Here's my code:

    package com.crash.java;

    import java.util.Scanner;

    public class Main{...
  2. Replies
    10
    Views
    1,293

    [SOLVED] Re: Building a calculator

    Always here to help and i'm also quite new, about 2 weeks. Also good luck with your study :)
  3. Replies
    10
    Views
    1,293

    [SOLVED] Re: Building a calculator

    I wouldn't go with a loop but again with a if statement and a method for reseting. Here is what you should do for checking whether to terminate or reset:



    //Ask if you want to terminate or...
  4. Replies
    10
    Views
    1,293

    [SOLVED] Re: Building a calculator

    Ok what you need is to test what type of operator it's inputed and then give it some instructions, so you should go with if statements like this:


    if(operation.equals("+")) {
    //type in what you...
Results 1 to 4 of 4