Assign the variable
"list" to a list with no elements
python list = []
list = []
csharp 3var list = new List<object>();
using System.Collections.Generic;
class SolutionXX
{
static void Main()
{
var list = new List<object>();
}
}
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 = {};
}
}
fantom list := [,]
class SolutionXX
{
Void main()
{
list := [,]
}
}
Submit a new solution for
python,
csharp,
java,
fantom ...
There are 19 other solutions in
additional languages (
cpp,
erlang,
fsharp,
go ...)