摘要:
IO流部分 IO流常用的有:字符流、字节流、缓冲流、序列化流、RandomAccessFile类等 1、字节流 FileInputStream/FileOutputStream BufferedInputStream/BufferedOutputStream 2、字符流 InputStreamRea 阅读全文
摘要:
package util; class BinarySearch { static int binarySearch(int[] array,int goal){//传入排好序的数组和目标数字 int low = 0;//数组的开始项 int high = array.length - 1;//数组的结束项 while(low arra... 阅读全文
摘要:
package exception; import java.util.Arrays; public class Sort { public static void main(String[] args) { int[] array = {1,5,2,9,7,8,6,4,0}; // System.out.println(Arrays.toString(bundleSort(arra... 阅读全文