回覆列表
  • 1 # 木子李ovo

    確定使用JSP實現麼

    <%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>Insert title here</title>

    </head>

    <%

    String temp1 = request.getParameter("num1");

    String temp2 = request.getParameter("num2");

    String max = null;

    if (temp1 != null && temp2 != null) {

    int a = Integer.parseInt(temp1);

    int b = Integer.parseInt(temp2);

    max = String.valueOf(Math.max(a, b));

    }

    %>

  • 中秋節和大豐收的關聯?
  • 問題解決了,刪除