/* * Lab 3, Debugging (with static methods) * * name: * email: * * Corrected version * */ public class Debugging { public static void main(String[] args) { System.out.println("Properly indented programs"); System.out.println("look ever so much better!"); System.out.println("please fix me"); System.out.println("and make me beautiful again"); } /* * triArea - computes and returns the area of a triangle * with base b and height h (both of which are integers). * The area is returned as a floating-point number, and * the result should be as precise as possible. */ public static double triArea(int b, int h) { double area = b/2.0 * h; return area; } }