Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
ArrayList Lab /** * CS139 - Programming Fundamentals * Department of Computer Science * James Madison University * @version Spring 2016 */ Practicing with ArrayLists Introduction The goal of this lab is to practice working with ArrayLists by completing a Document class that represents a text document as an ArrayList of String objects, where each entry in the ArrayList corresponds to a single line of text. As a reminder, you can follow the following steps to compile and execute a Java program in the terminal: $ cd the_directory_where_your_code_is_stored $ javac File1.java File2.java ... $ java File1 (This example assumes that File1.java contains the main method for the application.) Resources Useful API documents: java.util.ArrayList java.lang.String Files The following files are provided: Document.java UNFINISHED DocumentTestDriver.java This is a simple driver class for testing Document.java. Take a minute to look over this code to get a better idea of the expected behavior. Editor.java This is an editor application that provides a command-line interface to the Document class. Instructions Download the files above and complete Document.java so that all methods conform to the Javadoc comments. Test your completed file by running the two provided application programs. The file output.txt contains the correct output for DocumentTestDriver.java. Submitting Submit your completed version of Document.java through Web-CAT. Style checking is turned off, and you have an unlimited number of submissions. If you have trouble with your submission, you may find it helpful to look at the JUnit submission tests: DocumentTest.java.