import javax.swing.*;
import java.util.*;
import java.text.*;
public class HW2
{
public static void main(String[] args)
{
GregorianCalendar gc = new GregorianCalendar();
String input=JOptionPane.showInputDialog(null,"请输入日期:(格式:yyyy-MM-dd)");
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
java.util.Date da = new java.util.Date();
Date now=sdf.parse(input);
int count = JOptionPane.showInternalConfirmDialog(null,"请输入您想计算的天数");
}
}
就是那句话要报错
[此贴子已经被作者于2007-2-28 22:11:36编辑过]