实习四输入输出流.docVIP

  • 11
  • 0
  • 约4.48千字
  • 约 15页
  • 2016-12-18 发布于重庆
  • 举报
实习4 输入输出流 实验目的 (1) 掌握输入输出流的总体结构; (2) 掌握流的概念; (3) 了解各种流的使用。 1 public class JavaApplication { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub if (args.length == 0) { System.out.println(No command line arguments); } else { System.out.println(command line arguments were:); for (int i = 0; i args.length; i++) { System.out.println(Arguments + (i + 1) + : + args[i]); } } } } 2 package cn.edu.nwsuaf.jp; import java.io.FileReader; import java.io.IOException; public class FileViewer { /** Defines the entry point o

文档评论(0)

1亿VIP精品文档

相关文档