Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CS 112: Lab 1, Task 1 /* * Lab 1 - Debugging Exercise * * This is the corrected version. * Changes are highlighted in red. */ // Note that the class name must match the filename. public class Debugging { public static void main(String[] args) { /* * The following code segment is intended to calculate * the area of a triangle. */ double base = 3.5; int height = 2; System.out.println("Running Debugging.java"); // Note: we needed to remove the parens to get // the correct order of operations. double area = height*base/2; System.out.println("Area is: " + area); } // closing brace for main } // Debugging