导航

2012年6月20日

摘要: JDK API 1.6 中文帮助文档中和LZ意思一样,这么写的:-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-public void write(int c) throws IOException写入单个字符。要写入的字符包含在给定整数值的 16 个低位中,16 高位被忽略。 用于支持高效单字符输出的子类应重写此方法。 参数:c - 指定要写入字符的 int。 抛出: IOException - 如果发生 I/O 错误-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-例子:-=-=-=-=-=-=-=-=-=-=-... 阅读全文

posted @ 2012-06-20 11:47 鹤唳九天 阅读(1058) 评论(0) 推荐(0) 编辑

摘要: import java.util.*; import java.util.Collection; public class Foreach { private Collection c = null; private String[] belle = new String[4]; public Foreach() { belle[0] = "西施 "; belle[1] = "王昭君 "; ... 阅读全文

posted @ 2012-06-20 11:39 鹤唳九天 阅读(398) 评论(0) 推荐(0) 编辑

摘要: package cn.com.avenger.Test;import java.io.File;import java.io.FileInputStream;import java.io.IOException;public class Example12_4 { public static void main(String[] args) { int b,i=1; byte tom[]=new byte[18]; try { File f = new File("Example12_4.java"); FileInputStream in=new FileInputStr 阅读全文

posted @ 2012-06-20 11:11 鹤唳九天 阅读(817) 评论(0) 推荐(0) 编辑