Directly setting values for an ArrayList in Java. Ask Question. Create ArrayList from array. 1239. Fastest way to determine if an integer's square root is an integer. 2601. When to use LinkedList over ArrayList in Java? 2937. How to generate random integers within a specific range in Java?