Search:

Type: Posts; User: Omnamah

Search: Search took 0.13 seconds.

  1. Replies
    9
    Views
    1,800

    Re: 'else if' jumps to final else.

    I'd just like to point out, when I said I'd copied and pasted the code I meant I'd typed

    else if (op.equalsIgnoreCase(operators[2]))
    I copied and pasted it the relevant amount of times, somehow...
  2. Replies
    9
    Views
    1,800

    Re: 'else if' jumps to final else.

    Ack, that's what I get for being lazy and c+p-ing sections of code. Fixed now.

    Is .equals() really all that different from .equalsIgnoreCase()? I used IgnoreCase because it makes more sense from a...
  3. Replies
    9
    Views
    1,800

    'else if' jumps to final else.

    Explanation below code.


    import java.util.Scanner;

    class apples {
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    double sum;
    String[] operators...
Results 1 to 3 of 3