Skip to content

Instantly share code, notes, and snippets.

@minte9
Last active August 31, 2021 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minte9/93cdc2cb2da933399730205377d44d7d to your computer and use it in GitHub Desktop.
Save minte9/93cdc2cb2da933399730205377d44d7d to your computer and use it in GitHub Desktop.
/**
* 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