日期:2014-05-20 浏览次数:20702 次
import java.util.*;
public class InputTest2
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
Vector< Integer > items = new Vector< Integer >();
String line = in.nextLine();
in= new Scanner(line);
while(in.hasNext()){
int n = in.nextInt();
items.add(n);
}
for ( int i = 0; i < items.size(); i++ )
System.out.printf( " %d", items.get( i ) );
}
}