![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
klose2013
这个作者很懒,什么都没留下…
展开
-
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 · 301 阅读 · 0 评论 -
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 · 204 阅读 · 0 评论