Search:

Type: Posts; User: Bao

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    876

    [SOLVED] unreported exception

    Why doesn't my code compile?

    Here's the code:

    public class Exceptions
    {
    public void method1(int x)
    {
    if (x < 0)
    throw new Exception("ERROR: Negative value in X coordinate.");
  2. Replies
    3
    Views
    908

    [SOLVED] Re: NumberFormatException

    Sorry, I updated it

    --- Update ---

    I figured it out guys, I forgot to assign the "line" variable to the "reader.readLine()" method.
  3. Replies
    3
    Views
    908

    [SOLVED] NumberFormatException

    I’m doing this exercise where I need to design a program that will generate a random number between 1 and 100 and then let the user guess the number and tell them whether the guess is too high or too...
Results 1 to 3 of 3