Lab02a - test.calculatePerimeter( ); test.print();

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - public class Lab02a { public static void main( String[] args ) { Rectangle test = new Rectangle(); test.setLengthWidth(2,6); test.calculatePerimeter( ); test.print(); test.setLengthWidth(12,5); test.calculatePerimeter( ); test.print(); test.setLengthWidth(131,75);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: test.calculatePerimeter( ); test.print(); test.setLengthWidth(20,25); test.calculatePerimeter( ); test.print(); test.setLengthWidth(9,256); test.calculatePerimeter( ); test.print(); test.setLengthWidth(36,72); test.calculatePerimeter( ); test.print(); } }...
View Full Document

This note was uploaded on 11/11/2011 for the course C++ comp122 taught by Professor N/a during the Spring '07 term at Cy-Fair College.

Ask a homework question - tutors are online