Posts related to tag: list


Java 8– Find first and all smallest string in List

Using the Java 8 Stream API min method, you can find the first and all smallest strings from a List. […] Continue reading »

Different ways to iterate/loop a List of Integers in Java

In Java, you can iterate or loop a List object in different ways. In this short example, you will find […] Continue reading »

List Manipulation in HTML

See the very simple example of List Manipulation in HTML. reversed and start is the HTML attribute is used to […] Continue reading »

How to sort list in Java 8

In Java 8, the elements of a list are sorted by calling stream.sorted() method of Stream interface. As we know, […] Continue reading »

How to iterate list on JSP in Spring MVC

To iterate the ArrayList or any list on JSP in Spring  MVC framework, you can use the JSTL (JavaServer Pages […] Continue reading »

How to shuffle list elements in Java

On this page, we are going to shuffle or randomize elements of List in Java. In this example, we randomize the […] Continue reading »