Check02B - output.print("Enter the height:...

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

View Full Document Right Arrow Icon
import java.util.Scanner; import; import type.lib.*; public class Check02B { public static void main(String [] args) { Scanner input = new Scanner(; PrintStream output = System.out; output.print("Enter the width: "); int width = input.nextInt();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: output.print("Enter the height: "); int height = input.nextInt(); Rectangle R = new Rectangle(width, height); output.println("The return of getCircumference is: " + R.getCircumference()); output.println("The return of hashCode is: " + R.hashCode()); } }...
View Full Document

This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.

Ask a homework question - tutors are online