About 50 results
Open links in new tab
  1. java - LinkedList remove method - Stack Overflow

    Nov 7, 2008 · That answer would simply be remove, assuming you are asking about java.util.LinkedList which is in fact a double linked list. ...or are you asking about what the name of the algorithm to …

  2. Converting 'ArrayList<String> to 'String []' in Java - Stack Overflow

    Oct 28, 2010 · How might I convert an ArrayList<String> object to a String [] array in Java?

  3. java - iterating a linked list - Stack Overflow

    Jan 22, 2011 · if I use a for-each loop on a linked list in java, is it guaranteed that I will iterate on the elements in the order in which they appear in the list?

  4. java - Collections sort (List<T>,Comparator<? super T>) method …

    Possible Duplicate: Sorting Java objects using multiple keys I can't find any example of using this method, all examples give the second parameter "null". I heard that this method used for sort...

  5. java - Sort List in reverse in order - Stack Overflow

    Jan 31, 2019 · I have List list1 in direct order. List<String> list = Ordering.natural().sortedCopy(asu2); How to change order. And I don't know how to rewrite methods from extends class, please write with …

  6. java - swagger @ApiModelProperty example value for List<String ...

    Dec 6, 2016 · Is there any way I can generate proper example value for List<String> property? Update: I have tried the solutions suggested by @nullpointer and @Zeeshan Arif

  7. How do I convert a Java 8 IntStream to a List? - Stack Overflow

    May 15, 2014 · I'm looking at the docs for the IntStream, and I see an toArray method, but no way to go directly to a List&lt;Integer&gt; Surely there is a way to convert a Stream to a List?

  8. java - How to get maximum value from the Collection (for example ...

    There is an ArrayList which stores integer values. I need to find the maximum value in this list. E.g. suppose the arrayList stored values are : 10, 20, 30, 40, 50 and the max value would be 50. ...

  9. java - ConcurrentModificationException for ArrayList - Stack Overflow

    We can use concurrent collection classes to avoid ConcurrentModificationException while iterating over a collection, for example CopyOnWriteArrayList instead of ArrayList.

  10. Java 8 Stream - How to return replace a strings contents with a list of ...

    Jun 3, 2014 · Java 8 Stream - How to return replace a strings contents with a list of items to find Asked 11 years, 8 months ago Modified 3 years, 4 months ago Viewed 83k times