Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,574

    Re: simple multiplication exercise.

    You need to assign the Scanner object to a Scanner variable. You can't assign it to an int.


    int fnum = new Scanner(System.in); // error: fnum is an int variable, not a Scanner
    Scanner reader =...
  2. Replies
    7
    Views
    1,574

    Re: simple multiplication exercise.

    In the future please use code tags. They make your code much more readable.

    The first problem I can see is that the code is incomplete. You're missing at least a few closing braces at the end....
Results 1 to 2 of 2