Class Structures Java Text Files CS401 Lab 7 Huichao Xue Department of Computer Science University of Pittsburgh Oct 21, 2008 Huichao Xue CS401 Lab7 Class Structures Lab7 + main(args : String[]) + loadData(movies : MovieDB) + getCommands(movies : MovieDB) + saveData(movies : MovieDB) Movie title : String director : String studio : String gross : double + Movie(t : String, d : String, s : String, g : double) + toString() : String + toStringFile() : String + getTitle() : String MovieDB theMovies : Movie[] numMovies : int + MovieDB(size : int) + addMovie(m : Movie) + findMovie(title : String) : Movie + toString() : String + toStringFile() : String theMovies 0..1 Figure: Class diagram Huichao Xue CS401 Lab7