From 903e22d6236cb88c2cf94f26b5497327ab34bf19 Mon Sep 17 00:00:00 2001
From: linhx0hx <2095000342@qq.com>
Date: Mon, 3 Jun 2024 19:29:20 +0800
Subject: [PATCH 1/3] 1
---
.../main.jsp" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
diff --git "a/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp" "b/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
new file mode 100644
index 00000000..e69de29b
--
Gitee
From f9a55e1f05ad6f94287ba1451d2acb00e5dcac43 Mon Sep 17 00:00:00 2001
From: linhx0hx <2095000342@qq.com>
Date: Mon, 3 Jun 2024 19:59:26 +0800
Subject: [PATCH 2/3] 1
---
.../String.java" | 2 +-
.../main.jsp" | 46 +++++++++++++++++++
2 files changed, 47 insertions(+), 1 deletion(-)
rename "work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/Main.java" => "work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/String.java" (76%)
diff --git "a/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/Main.java" "b/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/String.java"
similarity index 76%
rename from "work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/Main.java"
rename to "work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/String.java"
index f686060f..631b6fd3 100644
--- "a/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/Main.java"
+++ "b/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/String.java"
@@ -1,4 +1,4 @@
package com.java.minxi.java_20240530.java_2301_林晗希_2344310108;
-public class Main {
+public class String {
}
diff --git "a/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp" "b/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
index e69de29b..798d7214 100644
--- "a/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
+++ "b/work/com/java/minxi/java_20240530/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
@@ -0,0 +1,46 @@
+<%@ page import="com.java.minxi.java_20240530.java_2301_林晗希_2344310108.String" %>
+<%
+ class Animal{
+ public java.lang.String sleep(int time){
+ return "一只动物在睡觉";
+ }
+ }
+
+ class Cat{
+ private String name;
+ private int time;
+
+ public Cat() {
+
+ }
+
+ public java.lang.String sleep(int time){
+ return "一只"+name+"睡觉睡了"+time+"小时";
+ }
+
+ 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 Cat(String name, int time) {
+ this.name = name;
+ this.time = time;
+ }
+
+
+
+
+ }
+%>
\ No newline at end of file
--
Gitee
From e4d53e7d8ac0a51d496ee3aac4378d2faab92fea Mon Sep 17 00:00:00 2001
From: linhx0hx <2095000342@qq.com>
Date: Mon, 3 Jun 2024 20:35:49 +0800
Subject: [PATCH 3/3] 1
---
.../circle.jsp" | 31 +++++++++++
.../ladder.jsp" | 52 +++++++++++++++++++
.../main.jsp" | 6 +++
3 files changed, 89 insertions(+)
create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/circle.jsp"
create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/ladder.jsp"
create mode 100644 "work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
diff --git "a/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/circle.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/circle.jsp"
new file mode 100644
index 00000000..fe91c492
--- /dev/null
+++ "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/circle.jsp"
@@ -0,0 +1,31 @@
+ param name="r" value="5"
+
+<%
+ class circle{
+ private Integer rr;
+ double a=3.1415926;
+
+ public circle() {
+
+ }
+
+ public double circleArea(){
+ return rr*a*a;
+ }
+
+ public Integer getRr() {
+ return rr;
+ }
+
+ public void setRr(Integer rr) {
+ this.rr = rr;
+ }
+
+ public circle(Integer rr) {
+ this.rr = rr;
+ }
+
+ circle circle=new circle();
+
+ }
+%>
\ No newline at end of file
diff --git "a/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/ladder.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/ladder.jsp"
new file mode 100644
index 00000000..e394c872
--- /dev/null
+++ "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/ladder.jsp"
@@ -0,0 +1,52 @@
+
+ param name="a" value="5"
+ param name="b" value="7"
+ param name="h" value="4"
+
+<%
+ class trapezium{
+ public trapezium(){
+
+ }
+
+ private Integer a;
+ private Integer b;
+ private Integer h;
+ int aa=2;
+
+ public trapezium(Integer a, Integer b, Integer h) {
+ this.a = a;
+ this.b = b;
+ this.h = h;
+ }
+
+ public Integer getA() {
+ return a;
+ }
+
+ public void setA(Integer a) {
+ this.a = a;
+ }
+
+ public Integer getB() {
+ return b;
+ }
+
+ public void setB(Integer b) {
+ this.b = b;
+ }
+
+ public Integer getH() {
+ return h;
+ }
+
+ public void setH(Integer h) {
+ this.h = h;
+ }
+
+ public double trapeziumArea(){
+ int i = (a + b) * h / aa;
+ return i;
+ }
+ }
+%>
diff --git "a/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp" "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
new file mode 100644
index 00000000..19e15f67
--- /dev/null
+++ "b/work/com/java/minxi/java_20240603/java_2301_\346\236\227\346\231\227\345\270\214_2344310108/main.jsp"
@@ -0,0 +1,6 @@
+
+
+ param name="r" value="5"
+ param name="a" value="5"
+ param name="b" value="7"
+ param name="h" value="4"
--
Gitee