String s = sb.toString(); return s; } } ```
### 3.7 Arrays(应用)
* Arrays的常用方法
| 方法名 | 说明 | | -------------------------------------- | ---------------------------------- | | public static String toString(int[] a) | 返回指定数组的内容的字符串表示形式 | | public static void sort(int[] a) | 按照数字顺序排列指定的数组 |
* 工具类设计思想
1、构造方法用 private 修饰
2、成员用 public static 修饰 |
|