摘要: package ba;import java.io.*;public class huanchong { public static void main(String[] args) { FileInputStream fis=null; InputStreamReader reader=nul... 阅读全文
posted @ 2015-08-04 22:01 微软小菜鸟 阅读(189) 评论(0) 推荐(0)
摘要: package ba;import java.io.*;public class zifuTest { public static void main(String[] args) { FileInputStream fis=null; InputStreamReader reader=null... 阅读全文
posted @ 2015-08-04 21:47 微软小菜鸟 阅读(520) 评论(0) 推荐(0)
摘要: package ba;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.Fi... 阅读全文
posted @ 2015-08-04 21:21 微软小菜鸟 阅读(377) 评论(0) 推荐(0)
摘要: package shi;import java.io.*;import java.util.*;public class duixangIO { public static void main(String[] args) { FileOutputStream fos = null; FileI... 阅读全文
posted @ 2015-08-04 16:04 微软小菜鸟 阅读(312) 评论(0) 推荐(0)
摘要: StringBuilder builder=new StringBuilder(); for(int i=97;i<123;i++){ System.out.print((char)i); } 阅读全文
posted @ 2015-08-04 15:41 微软小菜鸟 阅读(195) 评论(0) 推荐(0)
摘要: public class Test { public static void main(String args[]) { Calendar c = Calendar.getInstance(); c.setTimeInMillis(1234567890123L); int year ... 阅读全文
posted @ 2015-08-04 15:40 微软小菜鸟 阅读(637) 评论(0) 推荐(0)
摘要: package wu;import java.util.Arrays;public class Test4 { /** * @param args */ public static void main(String[] args) { // 产生100个随机数的数组,按照升序排列 int a... 阅读全文
posted @ 2015-08-04 15:39 微软小菜鸟 阅读(164) 评论(0) 推荐(0)
摘要: package wu;import java.util.Arrays;public class Test4 { /** * @param args */ public static void main(String[] args) { // 产生100个随机数的数组,按照升序排列 int a... 阅读全文
posted @ 2015-08-04 15:37 微软小菜鸟 阅读(154) 评论(0) 推荐(0)
摘要: 在int的范围内 将字符串类型的S 转换成int类型的Cint c=Integer.parseInt(s);如何将字串 String 转换成整数 int?A. 有两个方法: 1). int i = Integer.parseInt([String]); 或 i = Integer.pars... 阅读全文
posted @ 2015-08-04 15:36 微软小菜鸟 阅读(174) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class shiyan{ /** * * @param args */ public static void main(String args[]) { //生成10以内的随机数 double d = Math.rando... 阅读全文
posted @ 2015-08-04 15:34 微软小菜鸟 阅读(169) 评论(0) 推荐(0)
摘要: 1 package shi; 2 3 import java.io.*; 4 5 public class wenjianIO { 6 public static void main(String agrs[]){ 7 FileInputStream fis=null;... 阅读全文
posted @ 2015-08-04 14:03 微软小菜鸟 阅读(1834) 评论(0) 推荐(1)
摘要: package shi;import java.io.File;import java.io.IOException;import java.util.Calendar;public class Test { public static void main(String[] args)... 阅读全文
posted @ 2015-08-04 10:33 微软小菜鸟 阅读(497) 评论(0) 推荐(0)