作者在 2011-12-05 12:06:44 发布以下内容
import java.util.ArrayList;
import java.util.Scanner;
import java.text.SimpleDateFormat;
class ArrayTest{
public static void main(String args[]){
System.out.println("Input one number\b");
Scanner in = new Scanner(System.in);
System.out.println("Input one number\n");
int i = in.nextInt();
for(int b=0;b<i;b++)
System.out.print(""+b);
System.out.println();
Date d = new Date();
SimpleDateFormat sf = new SimpleDateFormat("hh-mm-ss");
System.out.println("Time is"+sf.format(d));
}
}