How to loop through objects in java using streams code example
Example: How to loop through objects in java using streams
ArrayList<String> namesList = new ArrayList<String>(Arrays.asList( "alex", "brian", "charles") );
namesList.forEach(name -> System.out.println(name));