上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: //取随机数 System.out.println("随机数 =" + Math.random()); System.out.println("随机数 =" + Math.random()); System.out.print... 阅读全文
posted @ 2015-12-17 09:02 D(a/e)mon 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: String gg = "ifhiasjbhgagayrahahuaybcnzkfhi"; //1.lastIndexOf方法 String ll = "fhi"; //System.out.println(ll.length()); /... 阅读全文
posted @ 2015-12-17 08:51 D(a/e)mon 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 我个人理解的一个应用场合就是,当你拿到一个对象的引用时(例如参数),你可能需要判断这个引用真正指向的类。所以你需要从该类继承树的最底层开始,使用instanceof操作符判断,第一个结果为true的类即为引用真正指向的类。例如下面的例子:class Person{} class Student ex... 阅读全文
posted @ 2015-12-14 09:30 D(a/e)mon 阅读(657) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi;public class yingxiong { private String name;//角色的名字 public String getName() { return name; } public ying... 阅读全文
posted @ 2015-12-10 09:10 D(a/e)mon 阅读(144) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi;public class JiaoSe { //角色性别 String JueSeXingBie; //服装颜色 String FuZhuangYanSe; //角色职业 Stri... 阅读全文
posted @ 2015-12-08 09:02 D(a/e)mon 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 青年歌手大赛有评委十个,歌手的成绩为:去掉两个最高分和两个最低分之后的平均分。现已知歌手的打分为(98,97,91,87,94,89,94,95,90,89),求此歌手的最后得分int[] e = {98,97,91,87,94,89,94,95,90,89}; in... 阅读全文
posted @ 2015-12-07 09:19 D(a/e)mon 阅读(133) 评论(0) 推荐(0) 编辑
摘要: public class fenzhi { public static void main(String[] args) { // 求一百以内奇数 int n = 100; int a = -1; ... 阅读全文
posted @ 2015-12-05 08:44 D(a/e)mon 阅读(154) 评论(0) 推荐(0) 编辑
摘要: public class chengfabiao { public static void main(String[] args) { // TODO 自动生成的方法存根 int z = 1; for(int a = 1;a < 10;... 阅读全文
posted @ 2015-12-05 08:40 D(a/e)mon 阅读(162) 评论(0) 推荐(0) 编辑
摘要: public class lianxi { public static void main(String[] args) { // TODO 自动生成的方法存根 //身高,体重 //1.设置真实的身高,体重,性别 ... 阅读全文
posted @ 2015-12-04 08:42 D(a/e)mon 阅读(167) 评论(0) 推荐(0) 编辑
摘要: public class OK { public static void main(String[] args) { System.out.println("ok"); int ok = 123; ... 阅读全文
posted @ 2015-12-03 08:57 D(a/e)mon 阅读(381) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页