Search:

Type: Posts; User: Norm

Search: Search took 0.18 seconds.

  1. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    Sorry, I do not know what is meant by a Branch.
  2. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    Sorry, I do not understand what your problem is now.

    Is there any message when you move the cursor over the color?
  3. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    Ok there is an ArrayList returned. The assignment statement needs to save that to a List variable.
    What value do you want from that (possibly empty) list?
  4. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    All methods are defined as void or as a datatype that they return. What is the definition for the collect method? What does it return?
    When assigning the value returned by a method, the datatypes...
  5. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    Look at the API doc for collect. What data type does it return?
  6. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    PickRecord record = (PickRecord) pickRecords.stream()
    .filter(d->d.getIsbn()==isbn)
    .collect(Collectors.toList());
    What value/data type does the collect method return?
    What is the data...
  7. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    Can you make a small, complete program that compiles and executes to show the problem?
    Do not post the whole of your project. Post just a small program for testing.


    Please don't post things...
  8. Re: ClassCastException ArrayList Cannot be cast to package.name.ClassNAME can some one Help to fix?

    An object of type ArrayList can not be cast to the type mentioned in the error message.

    What statement was flagged as causing that exception?
Results 1 to 8 of 8