假设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)
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)
举一反三
- 假设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)
- 假设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)
- 假设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)
- 在下面附属类方法中的下划线处应填入的正确参数是______。 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
- 假设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)