About 51 results
Open links in new tab
  1. java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be …

    Mar 4, 2015 · The ArrayList returned by Arrays.asList() method is NOT java.util.ArrayList it is a static inner class inside Arrays class. So, you can't cast it to java.util.ArrayList.

  2. arraylist - How to use an array list in Java? - Stack Overflow

    I need to know if I store my data in an ArrayList and I need to get the value that I've stored in it. For example : if I have an array list like this ArrayList A = new ArrayList(); A...

  3. Initialization of an ArrayList in one line - Stack Overflow

    Jun 17, 2009 · It would be simpler if you were to just declare it as a fixed-size List (but with mutable elements) - does it have to be an ArrayList? List<String> places = …

  4. Eclipse message saying List cannot be resolved to a type

    You will have to either import the packages in which these classes are present, or write the entire path. 1. import : import java.util.ArrayList; import java.util.List; 2. Full path: public class A { …

  5. collections - java.util.ConcurrentModificationException while …

    Aug 14, 2013 · It happens due to array list is modified after creation of Iterator. The iterators returned by this ArrayList's iterator and listIterator methods are fail-fast: if ...

  6. java: No implementation was created for ProductMapper due to …

    Feb 12, 2021 · java: No implementation was created for ProductMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation …

  7. java.util.ArrayList$Itr.checkForComodification exception thrown

    As you are itterating over a list and trying to remove element from the same list, a ConcurrentModificationException shall occur. You first iterate over the list then ...

  8. jackson - java.lang.ClassCastException: java.util.LinkedHashMap …

    Mar 3, 2015 · I'm getting below error: java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.testing.models.Account with below code final int expectedId = 1; Test …

  9. How to fix 'class java.util.LinkedHashMap cannot be cast to class' …

    Sep 9, 2019 · I'm working with a micro-service built using Java 11, this service has a dependency built in Java 8. Dependency has rest-clients in it and there is a method that does this: public …

  10. json - Can not deserialize instance of java.util.ArrayList out of …

    Can not deserialize instance of java.util.ArrayList out of VALUE_STRING Asked 12 years, 8 months ago Modified 5 years ago Viewed 277k times