判斷當天是否爲週末

        Calendar c=Calendar.getInstance();         int weekDay=c.get(Calendar.DAY_OF_WEEK);         if(weekDay==1 || weekDay==7 ){             System.out.println("週日是1,週六是7");         }         else{
相關文章
相關標籤/搜索