index.jsp

<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/17 0017
  Time: 上午 11:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>$Ti</title>
</head>
<body>
<h1>九九乘法表输出</h1>
<table border = "1">
  <%
    Date date = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    String sDate = sdf.format(date);
  %>
  当前系统时间:<%=sDate%>
  <%
    for(int i = 1;i<10;i++){%>
  <tr>
    <%
      for(int j = 1;j<=i;j++){%>
    <td style = border:1px solid black>
     <%=j%>*<%=i%>=<%=i*j%>

    </td>
    <%}%>
  </tr>
  <%}%>
</table>

</body>
</html>

九九乘法表输出+系统时间输出

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2022-01-22
  • 2022-01-15
猜你喜欢
  • 2022-03-09
  • 2021-12-10
  • 2022-01-20
  • 2021-05-30
  • 2021-11-11
相关资源
相似解决方案