Skip to content

Instantly share code, notes, and snippets.

@minte9
Last active Aug 31, 2021
Embed
What would you like to do?
/**
* Import libraries required by the following code
*/
/**
* SOLUTION
*/
import java.util.List;
import java.util.ArrayList;
class App {
public static void main(String[] args) {
List<Integer> list = new ArrayList<>();
list.add(1);
list.add(2);
System.out.println(list); // [1, 2]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment