标签:.com alt next 笔记 int 技术 sys family array
目录
具体代码如下:
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { ArrayList<Integer> list = new ArrayList<Integer>(); Scanner in = new Scanner(System.in); while(true) { int a = in.nextInt(); if(a == 0) break; list.add(a); } for(int i = list.size() - 1;i >= 0;i--) System.out.print(list.get(i)+" "); } }
标签:.com alt next 笔记 int 技术 sys family array
原文地址:http://www.cnblogs.com/liuzhen1995/p/6785469.html