黑马程序员技术交流社区

标题: 想报名基础班,但年龄超限了 [打印本页]

作者: noiary    时间: 2014-11-17 11:40
标题: 想报名基础班,但年龄超限了
就业班是一定要去的,但去之前想进基础班强化一下,谁知道刚刚过25周岁可不可以进?

另外,这论坛有个bug不知道你们发现了没有! 每次发帖子忘记选择主题分类提交被提示后都要等60秒才能再提交!

工作之余自学阶段,io流快结束了!
  1. /*
  2. ObjectStreamDemo
  3. */

  4. import java.io.*;

  5. public class ObjectStreamDemo {
  6.         public static void main(String[] args) throws Exception {
  7.                 //writeObj();
  8.                 readObj();
  9.         }
  10.        
  11.         public static void writeObj() throws Exception {
  12.                 File file = new File("obj.txt");
  13.                 ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));
  14.                 oos.writeObject(new Person("lisi", 39));
  15.                 oos.close();
  16.         }
  17.        
  18.         public static void readObj() throws Exception {
  19.                 File file = new File("obj.txt");
  20.                 ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));
  21.                 Object obj = ois.readObject();
  22.                 System.out.println(obj);
  23.         }
  24. }

  25. class Person implements Serializable {
  26.         private String name;
  27.         private int age;
  28.        
  29.         Person(String name, int age) {
  30.                 this.name = name;
  31.                 this.age = age;
  32.         }
  33.        
  34.         public String toString() {
  35.                 return name + " : " + age;
  36.         }
  37. }
复制代码

作者: 关军波    时间: 2014-11-17 12:14
多线程刚开始!我要加油了
作者: 郑泽霖    时间: 2014-11-17 14:43
你多大啊?
作者: noiary    时间: 2014-11-17 15:22
郑泽霖 发表于 2014-11-17 14:43
你多大啊?

26周岁            
作者: 叫我小强    时间: 2014-11-17 15:49
年龄没超!http://www.itheima.com/subject/newvideofdb/index.shtml?a302打开这个好好看看吧!
作者: zrq681722    时间: 2014-11-17 19:35
年龄是20几到30知道吧!
作者: noiary    时间: 2014-11-18 14:44
叫我小强 发表于 2014-11-17 15:49
年龄没超!http://www.itheima.com/subject/newvideofdb/index.shtml?a302打开这个好好看看吧! ...

原来改了!  

非常感谢~!
作者: noiary    时间: 2014-11-18 14:46
zrq681722 发表于 2014-11-17 19:35
年龄是20几到30知道吧!

知道了,感谢!
作者: Quasimodo    时间: 2014-11-19 22:02
同龄呢! 我也刚到26
作者: wljusa    时间: 2014-11-24 17:26
千峰和黑马哪个牛




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2