{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Check02B - output.print"Enter the height" int...

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

View Full Document Right Arrow Icon
import java.util.Scanner; import java.io.PrintStream; import type.lib.*; public class Check02B { public static void main(String [] args) { Scanner input = new Scanner(System.in); 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

{[ snackBarMessage ]}

Ask a homework question - tutors are online