摘要: 1、数组输出输出一个数组中的元素,我们通常用for循环来做,比如:package test;public class Test { public static void main(String args[]){ int arr[]={1,2,3}; System.o... 阅读全文
posted @ 2015-06-24 21:55 Maydow 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); whil... 阅读全文
posted @ 2015-06-24 21:31 Maydow 阅读(170) 评论(0) 推荐(0) 编辑