News

In this blog we will learn how to iterate over the elements of a collection (here we considered ArrayList) using generics and without generics. First we will go through the process of using iterator ...
ArrayList is an heterogeneous collection of objects where each object can be indexed individually. While writing an application there could be some scenarios where we have ArrayList object filled with ...
But we can use the Java classes Integer and Boolean instead. We can still add numbers and truth-values to the ArrayLists (for example 17 or false) and we can read the elements from the ArrayList () ...
jArrayList = autoclass('java.util.ArrayList') jString = autoclass('java.lang.String') words = ['a', 'b', 'c'] javaWords = [jString(w) for w in words] arraylist ...