- 117
- 0
- 约1.7万字
- 约 21页
- 2021-07-19 发布于天津
- 举报
}
}
}
}
《 Java 语言程序设计(基础篇) 》 (第 10 版 梁勇 著)
第十一章 练习题答案
11.1
public class Exercise11_01 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print( Enter three sides: );
double side1 = input.nextDouble();
double side2 = input.nextDouble();
double side3 = input.nextDouble();
Triangle triangle = new Triangle(side1, side2, side3);
System.out.print( Enter the color: );
String color = input.nextLine();
triangle.setColor(color);
System.out.print( Enter a boolean value for filled: );
boolean filled = input.nextBoolean();
triangle.setFilled(filled);
System.out
您可能关注的文档
最近下载
- 肉毒毒素临床治疗中国专家共识2025.docx
- 13.1 磁场 磁感线 练习题 高中物理新人教版必修第三册(2023年).docx VIP
- HB 20396-2016 超音速火焰喷涂碳化钨涂层规范.pdf
- 学术英语(医学)知到智慧树期末考试答案题库2025年天津医科大学.docx VIP
- 2026年辅警招聘考试试题库及答案【历年真题】试卷及答案.docx
- 2026年matlab期末考试试卷及答案.doc VIP
- Sysdrill钻井设计与工程.pdf VIP
- 原发性醛固酮增多症.pptx VIP
- MATLAB期末考试试卷汇总及解析.pdf VIP
- MATLAB期末考试试卷汇总.docx VIP
原创力文档

文档评论(0)