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 0000000000000000000000000000000000000000..9d40546a049c3b78b4ac2a155667ec31288c7d62 --- /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 0000000000000000000000000000000000000000..be1b848fb1436c38656be8f1eea8c6ea5163204b --- /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 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 0000000000000000000000000000000000000000..faa449d649140457a9282b53df13369153e051e6 --- /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 0000000000000000000000000000000000000000..32eaea29ae2b7600fb38c0f50a99075830c14868 --- /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" "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..67d7926e6190df2469a679beeefb508abf562ae7 --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\350\260\242\351\224\241\351\225\277_2344310241/main.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