I know that it is a bit of a noob program, but I'm slowly getting confused. The 'down' function is going to act like cd and the 'up' function would act like cd..
I have no clue how to allow the user to create a file or folder. I attempted using arrayLists instead of arrays but couldn't sort out the errors. Any help would be appreciated.
    import java.util.Scanner;
    class FileManager {
    //array of arrays will go here
    String Dir[] = {"UserOne"};
    String SystemFolders [] = {"Documents","","",};
    String SubFiles [] = {"","","","","",""};
    String Nav [][] = { Dir, SystemFolders, SubFiles};
    int levelCounter = 0;
    public void main(String[]args)   {
        Scanner sc = new Scanner (System.in);
        System.out.println("Enter a command");
        String command = sc.next();
            if (command.compareTo("down") == 0)
                down();
            //else if is on the way
    }
    void down ()    {
        //This will execute when the command is 'down'
        System.out.println(Nav[++levelCounter]);
    }
    void up ()  {
        //This will execute when the command is 'up'. It acts like cd..
        System.out.println(Nav[--levelCounter]);
    }
}
 
     
    