摘要: package com.wsy.work2; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton 阅读全文
posted @ 2019-05-17 12:15 尹旺旭 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 2.编写一个应用程序,要求从键盘输入一个double型的圆的半径,计算并输出其面积。测试当输入的数据不是double型数据(如字符串“abc”)会产生什么结果,怎样处理。 3.为类的属性“身份证号码.id”设置值,当给的的值长度为18时,赋值给id,当值长度不是18时,抛出IllegalArgume 阅读全文
posted @ 2019-05-17 12:14 尹旺旭 阅读(133) 评论(0) 推荐(0) 编辑
摘要: package JavaPractice;class Monkey {private String s; public Monkey() {} public Monkey(String s) {this.s=s; }public String getS() { return s; } public 阅读全文
posted @ 2019-05-17 12:12 尹旺旭 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-17 10:16 尹旺旭 阅读(108) 评论(0) 推荐(0) 编辑