• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






许先

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2016年5月28日

29.二进制文件的读写
摘要: import java.io.*; //二进制文件的读写 public class ReadAndWriteBinaryFile { public static void main(String[] args){ DataInputStream dis=null; DataOutputStream dos=null; FileInputS... 阅读全文
posted @ 2016-05-28 00:01 许先 阅读(225) 评论(0) 推荐(0)
 
28.使用泛型根据学员英文名找到学员对象
摘要: package entity; public class Student { private String name; // 学员姓名 private String sex; // 学员性别 public Student() { } public Student(String name, String sex) { this.name... 阅读全文
posted @ 2016-05-28 00:00 许先 阅读(653) 评论(0) 推荐(0)
 

2016年5月27日

27.使用泛型集合
摘要: /** * 宠物类,狗狗和企鹅的父类*/ public abstract class Pet { protected String name = "无名氏";// 昵称 protected int health = 100;// 健康值 protected int love = 0;// 亲密度 public abstract void eat(); ... 阅读全文
posted @ 2016-05-27 23:57 许先 阅读(693) 评论(0) 推荐(0)
 
26.使用Iterator和增强型for循环遍历Set
摘要: package entity; public class NewTitle { private int id; //ID private String titleName; //名称 private String creater; //创建者 public NewTitle() { } public NewTitle... 阅读全文
posted @ 2016-05-27 23:54 许先 阅读(2454) 评论(0) 推荐(0)
 
25.使用Iterator和增强型for循环遍历Map集合
摘要: /** * 宠物类,狗狗和企鹅的父类。 */ public abstract class Pet { protected String name = "无名氏";// 昵称 protected int health = 100;// 健康值 protected int love = 0;// 亲密度 public abstract void eat();... 阅读全文
posted @ 2016-05-27 23:52 许先 阅读(4592) 评论(0) 推荐(0)
 
23.LinkedList添加和删除新闻标题
摘要: package entity; public class NewTitle { private int id; //ID private String titleName; //名称 private String creater; //创建者 public NewTitle() { } public NewTitle... 阅读全文
posted @ 2016-05-27 23:49 许先 阅读(925) 评论(0) 推荐(0)
 
24.HashMap的多个方法
摘要: package cn.jbit.map; import java.util.HashMap; import java.util.Map; /** * 测试HashMap的多个方法。 */ public class TestMap { public static void main(String[] args) { // 1、使用HashMap存储多组国家英文简称和... 阅读全文
posted @ 2016-05-27 23:49 许先 阅读(247) 评论(0) 推荐(0)
 
22.Collections排序
摘要: package entity; public class Student implements Comparable{ private int number=0; //学号 private String name=""; //学生姓名 private String gender=""; //性别 public int... 阅读全文
posted @ 2016-05-27 23:48 许先 阅读(215) 评论(0) 推荐(0)
 
21.Collections常用方法的使用
摘要: import java.util.ArrayList; import java.util.Collections; import java.util.List; public class CollectionsDemo { public static void main(String[] args) { //创建集合 List list = new Ar... 阅读全文
posted @ 2016-05-27 23:44 许先 阅读(393) 评论(0) 推荐(1)
 
20.ArrayList获取并打印新闻标题
摘要: package entity; public class NewTitle { private int id; //ID private String titleName; //名称 private String creater; //创建者 public NewTitle() { } public NewTitle... 阅读全文
posted @ 2016-05-27 23:43 许先 阅读(843) 评论(0) 推荐(0)
 
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页