Java程序辅导

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

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
RightTriangle.java RightTriangle.java Below is the syntax highlighted version of RightTriangle.java from §1.1 Programming Model. /****************************************************************************** * Compilation: javac RightTriangle.java * Execution: java RightTriangle * Dependencies: StdDraw.java * * Draws a right triangle and a circumscribing circle. * ******************************************************************************/ public class RightTriangle { public static void main(String[] args) { StdDraw.square(.5, .5, .5); StdDraw.setPenColor(StdDraw.BLUE); StdDraw.line(.5, .5, .9, .5); StdDraw.line(.9, .5, .5, .8); StdDraw.line(.5, .8, .5, .5); StdDraw.circle(.7, .65, .25); } } Copyright © 2000–2017, Robert Sedgewick and Kevin Wayne. Last updated: Fri Oct 20 12:50:46 EDT 2017.