假设Calendarcalendar=newGregorianCalendar().__________返回日历当前月的天数。
A: calendar.get(Calendar.MONTH)
B: calendar.get(Calendar.MONTH_OF_YEAR)
C: calendar.get(Calendar.WEEK_OF_MONTH)
D: calendar.get(Calendar.WEEK_OF_YEAR)
E: calendar.getActualMaximum(Calendar.DAY_OF_MONTH)
A: calendar.get(Calendar.MONTH)
B: calendar.get(Calendar.MONTH_OF_YEAR)
C: calendar.get(Calendar.WEEK_OF_MONTH)
D: calendar.get(Calendar.WEEK_OF_YEAR)
E: calendar.getActualMaximum(Calendar.DAY_OF_MONTH)
举一反三
- 假设Calendarcalendar=newGregorianCalendar().__________返回日历当前月的天数。 A: calendar.get(Calendar.MONTH) B: calendar.get(Calendar.MONTH_OF_YEAR) C: calendar.get(Calendar.WEEK_OF_MONTH) D: calendar.get(Calendar.WEEK_OF_YEAR) E: calendar.getActualMaximum(Calendar.DAY_OF_MONTH)
- 在下面附属类方法中的下划线处应填入的正确参数是______。 public void writeData throws IOException { Gregoriancalendar calendar=new Gregoriancalendar(); calendar setTime(hireDay); out.println(name+"|" +salary+"|" +calendar.get(calendar.YEAR)+"|" +(calendar.get(Calendar MONTH)+1)"|" +calendar.get(Calendar.DAY_OF_MONTH)); } A: Employee[]e B: "employee.dat" C: PrintWriter out D: BufferedWriter
- Is a ________ month the same as a calendar month?
- 下面哪个方法可以获得Calendar实例( ) A: new Calendar() B: Calendar.getInstance() C: get(Calendar.YEAR)) D: get(Calendar.MONTH))
- 假设Calendarcalendar=newGregorianCalendar().__________返回日历的月份。 A: calendar.get(Calendar.MONTH) B: calendar.get(Calendar.MONTH_OF_YEAR) C: calendar.get(Calendar.WEEK_OF_MONTH) D: calendar.get(Calendar.WEEK_OF_YEAR)