Main { (@ static public void main(String args[]) throws Exception { Commands cs = Commands.parse(System.in); cs.print(); System.out.println(); FileSystem fs = new FileSystem( new CompoundFile( new FileName( new Ident ("root")), new File_PList() ) ); File_PList filelist1 = fs.get_root().get_contents(); CompoundFile a = new CompoundFile( new FileName( new Ident ("a") ), new File_PList() ); filelist1.addElement(a); CompoundFile b = new CompoundFile( new FileName( new Ident ("b") ), new File_PList() ); filelist1.addElement(b); File_PList filelist2 = a.get_contents(); CompoundFile c = new CompoundFile( new FileName( new Ident ("c") ), new File_PList() ); filelist2.addElement(c); CompoundFile d = new CompoundFile( new FileName( new Ident ("d") ), new File_PList() ); filelist2.addElement(d); fs.display(); System.out.println(); } @) }