1. Arrays工具类: Arrays这个类包含操作数组(比如排序和查找)的各种方法. 2. Arrays的方法: (1)toString方法:把数组转成字符串 public static String toString(int[] a): (2)sort方法:对数组进行排序 public static void sort(int[] a): (3)binarySearch方法:二分查找 public static int binarySearch(int[] a, int key): 上面都…
准备写一系列Java基础文章,先拿Java.io下手,今天聊一聊BufferedReader和BufferedWriter BufferedReader BufferedReader继承Writer,本身的方法非常简单,其官方解释如下: Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, an…