java基础
jock76237035
这个作者很懒,什么都没留下…
展开
-
java中如何获取某个范围内的随机数
[code="java"] public static int testR(int a,int b) { int temp = 0; try{ if(a>b){ temp = new Random().nextInt(a-b); return temp+b; }else{ temp = new Random().nextInt(b-a);...原创 2010-01-09 15:08:35 · 580 阅读 · 0 评论 -
File流的文件文字反转
[code="java"] package File; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.InputStreamRead...原创 2010-01-11 14:08:00 · 282 阅读 · 0 评论