爱问知识人 爱问教育 医院库

想做安防监控工程,现在还有市场吗?

首页

想做安防监控工程,现在还有市场吗?


        

提交回答

全部答案

    2018-06-02 05:28:05
  •   objectOut。writeObject(Stu1[]);。。。。。为何加上 [] 你很多地方都写错了,仔细点
    public static void main(String[] args) {

    Students Stu1[]={new Students("小明",100),new Students("小红",0)};

    try{ ByteArrayOutputStream out= new ByteArrayOutputStream();
    ObjectOutputStream objectOut=new ObjectOutputStream(out);
    objectOut。
      writeObject(Stu1);//就是这一行提示需要。class
    ByteArrayInputStream in=new ByteArrayInputStream(out。toByteArray());
    ObjectInputStream objectIn=new ObjectInputStream(in);
    Students Stu2[]=(Students[]) objectIn。
      readObject();
    System。out。println("学生的姓名和成绩:");
    for (int i=0;i System。out。
      println(Stu2[i]。getName() " " Stu2[i]。getGrade());
    }
    catch(Exception event){
    System。out。
      print(event);
    }。

    刘***

    2018-06-02 05:28:05

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):