Last active
August 31, 2021 12:10
-
-
Save minte9/93cdc2cb2da933399730205377d44d7d to your computer and use it in GitHub Desktop.
Java / Compiler / Packages - https://www.minte9.com/java/compiler-packages-1220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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