I'm not that experienced with coding but I know a thing or two and when trying to do something I encountered a problem.
The code itself:
public class Main {
public static void main(String[] args)
{
folder test = new folder("test", [5] , [5] );
int i = test.containedFolders.length;
System.out.println(i);
}
}
The constructor:
public class folder
{
private String name;
private String[] containedFolders;
private String[] containedFiles;
folder(String Name, String[] ContainedFolders, String[] ContainedFiles)
{
name = Name;
containedFolders = ContainedFolders;
ContainedFiles = ContainedFiles;
}
}
As seen in the title I get this error message- "Syntax error on token ",", Expression expected after this token" on both of the "," in ("test", [5] , [5] ).