上一页 1 ··· 4 5 6 7 8
摘要: 1、输入正确账号和密码,点击登陆,提示“用户登陆成功” 2、输入错误密码,提示“用户登陆失败” 阅读全文
posted @ 2019-09-02 17:15 溺水的小金鱼 阅读(274) 评论(0) 推荐(0)
摘要: 1 import java.text.SimpleDateFormat; 2 import java.util.Calendar; 3 import java.util.Date; 4 5 public class Time { 6 public static void main(String[]args){ 7 // 使用format()方法将日期转换为指定格式的文本 8 SimpleDateF 阅读全文
posted @ 2019-09-02 17:11 溺水的小金鱼 阅读(212) 评论(0) 推荐(0)
摘要: 1 /**String类常用方法 2 *int length() 返回当前字符串长度 3 *int indexOf("a") 查找a字符串在该字符串中第一次出现的位置 4 *int lastIndexOf("b") 查找b在该字符串中最后一次出现的位置 5 *String substring(3,5) 查找从index第3位到第5位的子字符串 6 *String... 阅读全文
posted @ 2019-09-02 17:10 溺水的小金鱼 阅读(496) 评论(0) 推荐(0)
摘要: 2、创建一个exception类,包含一个test方法,当捕获到b/a中a=0的时候,抛出异常 3、创建一个测试类继承上一个exception类,对该类实例化对象,并且调用test1、test2方法 执行结果 阅读全文
posted @ 2019-09-02 16:59 溺水的小金鱼 阅读(153) 评论(0) 推荐(0)
摘要: 1、输出乘法表 2、打印水仙花数(水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身) 3、找出所有4位数的9倍是该数的反序数,例如1089的4倍是9801 4、/** 5、查询水果价格 给定四种水果,分别是苹果(apple)、梨(pear)、桔子(orange)、葡萄(grap 阅读全文
posted @ 2019-09-02 16:40 溺水的小金鱼 阅读(685) 评论(0) 推荐(0)
摘要: 1.(1)编写一个接口ShapePara,要求: 接口中的方法: int getArea():获得图形的面积。int getCircumference():获得图形的周长 (2)编写一个圆类Circle,要求:圆类Circle实现接口ShapePara。 该类包含有成员变量: radius:publ 阅读全文
posted @ 2019-09-02 16:12 溺水的小金鱼 阅读(674) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8