CSE116 Introduction to Computer Science II Fall 2000 Lab 1 Labs are to be completed within the week in which it is allocated and shown to the TA who teaches the lab to you. Goals: 1. Exercise knowledge of unix commands, editor (emacs or xemacs) 2. Evaluate students' knowledge of the fundamental concepts of interface, class, systematic approach to class definition and testing the methods. 3. toString and equal utility methods. 4. Command line arguments. 1. Create a new directory tree cse116/lab/lab1 in your home directory. 2. Copy ~bina/cse116/fall2000/lab/lab1/Rectangle.java into your lab1 directory. 3. Rectangle.java represents the example given during lecture class Study th program. 4. There is an interface, implementation of the interface in a class, and client (driver) that tests the implemented class. 5. To exercise your unix and editor skills, first compile the Rectangle.java using javac command. Then execute the application RectangleClient javac Rectangle.java java RectangleClient Observe operation. 6. Next split the interface, class and testing client into three different files. 7. Remove all class files: rm *.class 8. Compile and execute the RectangleClient. 9. Study the toString method of the implementation. 10. Add another utility method equal that returns true if a rectangle passed as a parameter has the same area! In another implementation equality may be strict in that it may require length and width measures to be the same. (Do you realize the significance of interface and / implementation separation?) 11. Add statements in your RectangleClient to test the equal method. 12. Current version of client has the size of the rectangle hardcoded. Change to accept values for width and length from the command line. Your TA will help you with this part. Show your completed lab to your TA. ===============================================================