Preview:
import java.util.ArrayList;
public class Example {
    public static void main(String[] args) {
    
         // creating the list of integer type
    ArrayList <Integer> numList = new ArrayList<>(); 
             //data-type // varibale // new operator

    }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter