Assign the variable
"list" to a list with no elements
perl @list = ();
@list = ();
java List list = Collections.emptyList();
public class Solution72 {
public static void main(String[] args) {
List list = Collections.emptyList();
}
}
java String[] list = {};
public class Solution73 {
public static void main(String[] args) {
String[] list = {};
}
}
Submit a new solution for
perl or
java
There are 23 other solutions in
additional languages (
clojure,
cpp,
csharp,
erlang ...)