Search:

Type: Posts; User: catisch

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    4,827

    Re: help with trace tables for loops

    Sorry, that's just the way it looked in the book

    public class Practice {

    public static void main(String[] args) {

    int i = 10;
    int j = 0;
    int n = 0;
  2. Thread: Cross-posting

    by catisch
    Replies
    2
    Views
    1,496

    Cross-posting

    I am new to java, and these forums etc., and I've seen a few people get called out for posting their questions on more than one site. I'm just wondering why this is such a bad thing? It seems to me...
  3. Replies
    3
    Views
    4,827

    help with trace tables for loops

    For my java homework I have to provide a trace table for the following loop:

    int i = 10; int j = 0; int n = 0;
    while (i > 0) { i--; j++; n = n + i - j; }

    When I put it into eclipse I get the...
  4. Replies
    10
    Views
    1,373

    Re: Help with five function calculator

    I'm sorry, we haven't gotten to parsing or String.split(). That is over my head.
  5. Replies
    10
    Views
    1,373

    Re: Help with five function calculator

    Enter a binary arithmetic expression, with spaces between operands and operator.
    3 + 4
    Exception in thread "main" java.util.InputMismatchException
    at java.util.Scanner.throwFor(Unknown Source)...
  6. Replies
    10
    Views
    1,373

    Re: Help with five function calculator

    Ok, I changed it to where I thought the code would read the operator that the user is supposed to type in, but it is still crashing?





    import java.util.Scanner;

    public class...
  7. Replies
    10
    Views
    1,373

    Help with five function calculator

    I have to create a five-function calculator. The input to my program will be a binary arithmetic expression, with the operator separated from the operands by a space like 24 * 4. The output will be...
Results 1 to 7 of 7