From 5ab3891b172795487c081d6b60619f75bd95ce78 Mon Sep 17 00:00:00 2001 From: Administrator <1427856472@qq.com> Date: Wed, 5 Jun 2024 14:51:53 +0800 Subject: [PATCH 1/3] zuoye --- .../99.jsp" | 28 ++++++++++ .../nihao.jsp" | 56 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 "work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/99.jsp" create mode 100644 "work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/nihao.jsp" diff --git "a/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/99.jsp" "b/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/99.jsp" new file mode 100644 index 0000000..9d40546 --- /dev/null +++ "b/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/99.jsp" @@ -0,0 +1,28 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + + 九九乘法口诀 + + + + + + + + <% for (int i = 1; i <= 9; i++) { %> + + <% } %> + + <% for (int i = 1; i <= 9; i++) { %> + + + <% for (int j = 1; j <= i; j++) { %> + + <% } %> + + <% } %> +
X<%= i %>
<%= i %><%= i * j %>
+ + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/nihao.jsp" "b/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/nihao.jsp" new file mode 100644 index 0000000..be1b848 --- /dev/null +++ "b/work/com/java/minxi/java_20240531/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/nihao.jsp" @@ -0,0 +1,56 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + + + 汤姆猫睡觉 + + + +<% +class Animal{ + public String sleep(int time){ + return "一只动物在睡觉"; + } +} +%>> +<% +class Cat extends Animal{ + private String name; + private int time; + + public Cat(String 汤姆, int i) { + + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getTime() { + return time; + } + + public void setTime(int time) { + this.time = time; + } + public String sleep(int time){ + return "一只"+name+"猫睡了"+ getTime() +"个小时"; + } +} +%> +<% + Animal animal=new Animal(); + out.print(animal.sleep(8)); + %> +<% + Cat cat=new Cat("汤姆",8); + out.print(cat.sleep(8)); + %> +%> + + \ No newline at end of file -- Gitee From 8111ea5f33fbb2cc1ab6005a119d1ed28f1edca2 Mon Sep 17 00:00:00 2001 From: Administrator <1427856472@qq.com> Date: Wed, 5 Jun 2024 17:37:43 +0800 Subject: [PATCH 2/3] zuoye --- .../circle.jsp" | 7 +++++++ .../ladder.jsp" | 9 +++++++++ .../main.jsp.jsp" | 19 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/circle.jsp" create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/ladder.jsp" create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" diff --git "a/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/circle.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/circle.jsp" new file mode 100644 index 0000000..faa449d --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/circle.jsp" @@ -0,0 +1,7 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + double radius =Double.parseDouble(request.getParameter("半径")); + double 面积 = Math.PI*radius *radius; +%> +

圆面积

+

The area of the circle with radius<%= radius%>is:<%= 面积%>

\ No newline at end of file diff --git "a/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/ladder.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/ladder.jsp" new file mode 100644 index 0000000..32eaea2 --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/ladder.jsp" @@ -0,0 +1,9 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<% + double topBase = Double.parseDouble(request.getParameter("上底")); + double bottomBase = Double.parseDouble(request.getParameter("下底")); + double height = Double.parseDouble(request.getParameter("梯高")); + double area = ((topBase + bottomBase) / 2) * height; +%> +

Ladder Area

+

The area of the ladder with top base <%= topBase %>, bottom base <%= bottomBase %>, and height <%= height %> is: <%= area %>

\ No newline at end of file diff --git "a/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" new file mode 100644 index 0000000..67d7926 --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" @@ -0,0 +1,19 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + Main page + + +

Main page

+
圆半径:
上底:
下底:
梯形的高:
+ + + + + + + + + + \ No newline at end of file -- Gitee From 15fb5055ec5005eefc9ed2b3b88c82d8cf229fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E9=94=A1=E9=95=BF?= <1427856472@qq.com> Date: Thu, 6 Jun 2024 01:21:39 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20work/com/java?= =?UTF-8?q?/minxi/java=5F20240605/java=5F2302=5F=E8=B0=A2=E9=94=A1?= =?UTF-8?q?=E9=95=BF=5F2344310241/main.jsp.jsp=20=E4=B8=BA=20work/com/java?= =?UTF-8?q?/minxi/java=5F20240605/java=5F2302=5F=E8=B0=A2=E9=94=A1?= =?UTF-8?q?=E9=95=BF=5F2344310241/main.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" => "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp" (100%) diff --git "a/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp" similarity index 100% rename from "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp.jsp" rename to "work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp" -- Gitee