智慧职教: Calendar calendar = Calendar.getInstance(); year = 【1】.get(Calendar.YEAR); month = calendar.get(Calendar.MONTH); 这一段代码是实例化Calendar类,并给变量year,和month赋值功能。【1】处的代码是()
智慧职教: Calendar calendar = Calendar.getInstance(); year = 【1】.get(Calendar.YEAR); month = calendar.get(Calendar.MONTH); 这一段代码是实例化Calendar类,并给变量year,和month赋值功能。【1】处的代码是()
在下面附属类方法中的下划线处应填入的正确参数是______。 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
在下面附属类方法中的下划线处应填入的正确参数是______。 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
下面哪个方法可以获得Calendar实例( ) A: new Calendar() B: Calendar.getInstance() C: get(Calendar.YEAR)) D: get(Calendar.MONTH))
下面哪个方法可以获得Calendar实例( ) A: new Calendar() B: Calendar.getInstance() C: get(Calendar.YEAR)) D: get(Calendar.MONTH))
在下面附属类方法中的下划线处应填入的正确参数是[u] [/u]。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
在下面附属类方法中的下划线处应填入的正确参数是[u] [/u]。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)
假设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)
假设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) 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)
使用()方法可以获得Calendar类的实例。 A: get() B: equals() C: getTime() D: getInstance()
使用()方法可以获得Calendar类的实例。 A: get() B: equals() C: getTime() D: getInstance()
Calendar类中( )方法根据默认的时区实例化日期对象。 A: afte B: getInstance C: efore D: get
Calendar类中( )方法根据默认的时区实例化日期对象。 A: afte B: getInstance C: efore D: get