public static void main(String args[]) { // Begin main Method.
System.out.print("Base of Right Triangle = "); // Print Input for Triangle.
try {
rightTriangleWidth = scan.nextDouble(); // Store User Input.
} catch (InputMismatchException e) {
System.out.println("Please Enter a numeric value: ");
} finally {
rightTriangleWidth = scan.nextDouble();
}
System.out.print("\tSide of square = "); // Print Input for Square.
squareSide = scan.nextInt(); // Store User Input.
drawShapes(rightTriangleWidth, squareSide); // Draw a Right Triangle and Square with Dimensions..
} // End main Method.
This post has been edited by x68zeppelin80x: 23 October 2010 - 09:02 PM

New Topic/Question
Reply



MultiQuote




|