- 博客(2)
- 收藏
- 关注
原创 java数组操作
1. 数组的初始化必须定义长度。 2. 数组的长度 int length = array.Length; 3. 遍历数组可以使用两种方式: for(int i=0; i<array.Length; i++){} for(int a : array){} 4. Arrays类的使用 int binarySearch(int[] a,int key) 使用二分查找方法,不包含返回负数,要
2017-03-31 20:25:56 202
原创 Java控制台用户输入总结
Java常见的用户控制台输入有三种方法: 1.System.in.read() System.in.read() package console_input; import java.io.*; public class console_input { public static void main(String [] args) throws IOException { Sy
2017-03-30 22:04:45 297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人