Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    Ok, if you've solved the problem, mark this thread as solved.
  2. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    That is not a compiler error. It's from when the program is executed.

    What is the input you are passing to the program via the Scanner class's constructor?
    Does it match what you type in when...
  3. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    Please copy the full text of the compiler error message and paste it here.


    I need the input to test the program. Here's what I get when I execute it:
  4. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    Yes.
  5. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    If all that has to be entered to test the program, it is way too much.
    The Scanner class has a constructor that takes a String. Can you code the String in the Scanner's constructor with all the...
  6. Replies
    12
    Views
    1,316

    Re: Casting error using String with generics

    That makes sense. How can an object of type: Project2.ListNode be cast to a String at line on line 87?

    What input does the program need to execute and get the error?
Results 1 to 6 of 6