13th November 2020 How to iterate over an array using Java Streams Iterate over an array using Java Streams Printing elements in an array using Java Streams This stream using a lambda function in the forEach loop to print the element. Categories Java Comments: 0
10th November 2020 Getting an array of the fields in a POJO Java model class using Java Streams Lets imagine we have a Java POJO model class that looks like this: How can we get an array of all the fields in this class? We can do this by using Java Streams. Using the Class getDeclaredFields() and Java streams we can get an array of all the Field[] in the class. We can run each element in the... Categories Java Comments: 0