Hello, I have come across a small dilemma. I am having trouble passing an array as an argument without first assigning it to a variable. I have a constructor that takes one of argument of a String array. I am successfully able to get it to work properly by doing this:
public static String lev1a[] = {
"1111111111111111111111",
"1000000000100000000001",
"1000710000020202020201",
"1000011111002020202021",
"1000000000000000000001",
"1111111111111111111111",
};
Level level = new Level(lev1a);
however, I can't find a way to pass a string array as an argument in a way that I don't need to name it/ assign first. I wanted to be able to do something along the lines of this:
Level level = new Level(
"1111111111111111111111",
"1000000000100000000001",
"1000710000020202020201",
"1000011111002020202021",
"1000000000000000000001",
"1111111111111111111111",);
but I can't get this to work. Is there a way to do this/ what is the proper syntax for it?