Z
zhaodiqing
Unregistered / Unconfirmed
GUEST, unregistred user!
import java.util.*;
public class test{
public static void main(String args[])
{
Date date = new Date();
int day = date.getDay();
if ( day == 1)
System.out.println("星期一");
else
if ( day == 5)
System.out.println("星期五");
}
}
怎么出不来结果??
有这样一个提示:
uses or overrides a deprecated API.
Recompile with -deprecation for details.
public class test{
public static void main(String args[])
{
Date date = new Date();
int day = date.getDay();
if ( day == 1)
System.out.println("星期一");
else
if ( day == 5)
System.out.println("星期五");
}
}
怎么出不来结果??
有这样一个提示:
uses or overrides a deprecated API.
Recompile with -deprecation for details.