• 位置:网教试题 >> 浏览试题

[next] 假设当前为2018年8月18日,则如下JSP代码输出结果为()。 <%@page import="java.

2021/10/4
a.util.Date"%>
<%@ page import ="java.text.SimpleDateFormat"%>
<%
SimpleDateFormat formater=new SimpleDateFormat("yyyy年MM月dd日");
String strTime = formater.format(new Date());
%>
<%=strTime%>

A.2018年08月18日

B.2018年09月18日

C.18年8月18日

D.编译错误

查看答案

关于网站 - 联系我们 - 网站地图
版权所有:湖北自考服务中心网