how can i iterate through the objects using stream 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));