修复冲突

master
Eterlaze 10 months ago
commit 0558677e50

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/Product1113.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/allclasses-frame.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/allclasses-noframe.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/constant-values.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/deprecated-list.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/help-doc.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/index-files/index-1.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/index-files/index-2.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/index-files/index-3.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/index-files/index-4.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/index.html" charset="GBK" />
<file url="file://$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc/overview-tree.html" charset="GBK" />
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,10 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="127" name="Java" />
</Languages>
</inspection_tool>
</profile>
</component>

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="lession00">
<CLASSES>
<root url="jar://$PROJECT_DIR$/_01Lession1113/src/Java1113/lession00.zip!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -1,5 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<<<<<<< HEAD
=======
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/Java1113/_01Lesson1113/src/Java1113/lesson01/javadoc" />
<option name="OPTION_SCOPE" value="public" />
<option name="OPTION_INCLUDE_LIBS" value="true" />
</component>
>>>>>>> b127eb2ca79831ab03cfe24ad4732db233126931
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>

@ -2,7 +2,16 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<<<<<<< HEAD
<module fileurl="file://$PROJECT_DIR$/Calculater.iml" filepath="$PROJECT_DIR$/Calculater.iml" />
=======
<module fileurl="file://$PROJECT_DIR$/Java1113/_00Lesson1113/_00Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_00Lesson1113/_00Lesson1113.iml" />
<module fileurl="file://$PROJECT_DIR$/Java1113/_01Lesson1113/_01Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_01Lesson1113/_01Lesson1113.iml" />
<module fileurl="file://$PROJECT_DIR$/Java1113/_02Lesson1113/_02Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_02Lesson1113/_02Lesson1113.iml" />
<module fileurl="file://$PROJECT_DIR$/Java1113/_03Lesson1113/_03Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_03Lesson1113/_03Lesson1113.iml" />
<module fileurl="file://$PROJECT_DIR$/Java1113/_04Lesson1113/_04Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_04Lesson1113/_04Lesson1113.iml" />
<module fileurl="file://$PROJECT_DIR$/Java1113/_05Lesson1113/_05Lesson1113.iml" filepath="$PROJECT_DIR$/Java1113/_05Lesson1113/_05Lesson1113.iml" />
>>>>>>> b127eb2ca79831ab03cfe24ad4732db233126931
</modules>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SwaggerSettings">
<remoteSpecificationUrls>
<UrlInfo>
<option name="urlString" value="https://api.swaggerhub.com/apis/RAJKUMARSINGH07/OpenAPIcourse/1.0/swagger.yaml" />
</UrlInfo>
</remoteSpecificationUrls>
</component>
</project>

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Calculater.iml" filepath="$PROJECT_DIR$/Calculater.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,153 @@
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class Calculater extends Application {
private Label display;
private double firstNumber = 0;
private String operator = "";
private boolean startNewNumber = true;
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
// Create display label
display = new Label("0.0");
display.setStyle("-fx-font-size: 30px;");
display.setMinWidth(200); // Adjust width for display
display.setAlignment(Pos.CENTER_RIGHT); // Align text to the right
// Set up the buttons
GridPane gridPane = createButtonGrid();
// Create the layout
VBox layout = new VBox(10);
layout.setPadding(new Insets(10));
layout.setAlignment(Pos.CENTER);
layout.getChildren().addAll(display, gridPane);
// Set up the scene and stage
Scene scene = new Scene(layout, 300, 400);
primaryStage.setTitle("Calculator");
primaryStage.setScene(scene);
primaryStage.show();
}
private GridPane createButtonGrid() {
GridPane grid = new GridPane();
grid.setHgap(10);
grid.setVgap(10);
grid.setAlignment(Pos.CENTER);
// Create buttons with a similar layout to your screenshot
String[][] buttonText = {
{"AC", "±", "%", "÷"},
{"7", "8", "9", "×"},
{"4", "5", "6", "-"},
{"1", "2", "3", "+"},
{"0", ".", "=", ""}
};
// Set button size
int buttonSize = 50;
// Add buttons to the grid
int row = 0;
for (int i = 0; i < buttonText.length; i++) {
for (int j = 0; j < buttonText[i].length; j++) {
if (!buttonText[i][j].isEmpty()) {
Button button = createButton(buttonText[i][j], buttonSize);
if (buttonText[i][j].equals("0")) {
grid.add(button, j, row, 2, 1); // Make '0' span two columns
} else {
grid.add(button, j, row);
}
}
}
row++;
}
return grid;
}
private Button createButton(String text, int size) {
Button button = new Button(text);
button.setMinSize(size, size);
button.setStyle("-fx-font-size: 18px; -fx-background-color: white; -fx-border-color: lightgray;");
button.setOnAction(e -> handleButtonPress(text));
return button;
}
private void handleButtonPress(String text) {
if (text.matches("\\d") || text.equals(".")) {
handleNumberInput(text);
} else if (text.equals("AC")) {
handleClear();
} else if (text.equals("=")) {
handleEquals();
} else {
handleOperator(text);
}
}
private void handleNumberInput(String text) {
if (startNewNumber) {
display.setText(text);
startNewNumber = false;
} else {
display.setText(display.getText() + text);
}
}
private void handleClear() {
display.setText("0");
firstNumber = 0;
operator = "";
startNewNumber = true;
}
private void handleOperator(String text) {
firstNumber = Double.parseDouble(display.getText());
operator = text;
startNewNumber = true;
}
private void handleEquals() {
double secondNumber = Double.parseDouble(display.getText());
double result = 0;
switch (operator) {
case "+":
result = firstNumber + secondNumber;
break;
case "-":
result = firstNumber - secondNumber;
break;
case "×":
result = firstNumber * secondNumber;
break;
case "÷":
if (secondNumber != 0) {
result = firstNumber / secondNumber;
} else {
display.setText("Error");
return;
}
break;
case "%":
result = firstNumber % secondNumber;
break;
}
display.setText(String.valueOf(result));
startNewNumber = true;
}
}

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Git.iml" filepath="$PROJECT_DIR$/Git.iml" />
</modules>
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$/Calculate" vcs="Git" />
<mapping directory="$PROJECT_DIR$/Computer" vcs="Git" />
</component>
</project>

@ -0,0 +1 @@
Subproject commit 4bd0fd7b4ceddcd9ec62ba4c3d87077117eda55e

@ -0,0 +1 @@
Subproject commit 119cf11296ee84f06d011f06744d1f6c00b7f7e1

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/Calculate" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1 @@
Subproject commit c2becd26041f9a5c6c51830c15261e116fc2c6a0

@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1 @@
getLastDay1113.java

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/../_01Lession1113/_00Lession1113/_00Lession1113.iml" filepath="$PROJECT_DIR$/../_01Lession1113/_00Lession1113/_00Lession1113.iml" />
</modules>
</component>
</project>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,9 @@
package Java1113.lession00;
public class Hello1113 {
public static void main(String[] args) {
System.out.println("学号212211113");
System.out.println("姓名:陈永锐");
}
}

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,88 @@
211706724 吴熹
211904224 宋昊泽
211914127 林浩文
212003160 李志颍
212106263 钟欣桦
212106559 赵宇杰
212106610 方懋建
212106649 周元宣
212202243 尹杰
212202301 鲍金辉
212203152 陈周烨
212204263 李齐贤
212206201 蔡承霖
212206203 陈海翔
212206204 陈佳媛
212206212 陈子俊
212206213 邓泽玉
212206216 方琦
212206218 龚心怡
212206219 洪彬浩
212206223 贾旺勇
212206225 李杰
212206226 李文军
212206227 李文涛
212206228 梁晓峰
212206235 林延景
212206236 林志煌
212206237 刘灵峰
212206239 彭应文
212206243 汤宜默
212206244 王家彬
212206245 翁启凡
212206247 吴宇铉
212206248 先泽宇
212206249 谢伟
212206250 谢潇航
212206257 张俊林
212206260 赵本智
212206262 郑亿
212206264 朱昊
212206266 蔡军仁
212206268 陈朝阳
212206269 陈达坤
212206272 陈文熙
212206276 陈正琦
212206279 高晨纲
212206280 高晨涛
212206283 黄嘉铭
212206285 蒋蒸
212206288 李铭伟
212206289 李少钧
212206292 林秋荻
212206295 陆生荣
212206297 潘俊杰
212206298 潘淑君
212206300 宋鹏飞
212206304 王柄盛
212206307 王伟强
212206308 温静远
212206309 吴静怡
212206310 吴翔宇
212206313 杨鹏
212206315 姚翔
212206316 叶锋
212206318 叶浙波
212206321 詹旭航
212206322 张杰
212206324 张益宁
212206326 赵思嘉
212206327 郑鹏俊
212206328 郑诗鹏
212206329 朱佳辉
212206330 祝豪政
212206428 陆俊谕
212207131 谢子建
212208324 赖美娟
212208407 陈锴德
212211108 陈惠民
212211113 陈永锐
212211211 郭运盛
212211227 梁永杰
212211316 谢宇杰
212211319 杨靖
212214381 林聪
212214417 周俊杰
212217240 吴昊
212217253 于建潮
212218111 黄晓彤

@ -0,0 +1,88 @@
211706724 吴熹
211904224 宋昊泽
211914127 林浩文
212003160 李志颍
212106263 钟欣桦
212106559 赵宇杰
212106610 方懋建
212106649 周元宣
212202243 尹杰
212202301 鲍金辉
212203152 陈周烨
212204263 李齐贤
212206201 蔡承霖
212206203 陈海翔
212206204 陈佳媛
212206212 陈子俊
212206213 邓泽玉
212206216 方琦
212206218 龚心怡
212206219 洪彬浩
212206223 贾旺勇
212206225 李杰
212206226 李文军
212206227 李文涛
212206228 梁晓峰
212206235 林延景
212206236 林志煌
212206237 刘灵峰
212206239 彭应文
212206243 汤宜默
212206244 王家彬
212206245 翁启凡
212206247 吴宇铉
212206248 先泽宇
212206249 谢伟
212206250 谢潇航
212206257 张俊林
212206260 赵本智
212206262 郑亿
212206264 朱昊
212206266 蔡军仁
212206268 陈朝阳
212206269 陈达坤
212206272 陈文熙
212206276 陈正琦
212206279 高晨纲
212206280 高晨涛
212206283 黄嘉铭
212206285 蒋蒸
212206288 李铭伟
212206289 李少钧
212206292 林秋荻
212206295 陆生荣
212206297 潘俊杰
212206298 潘淑君
212206300 宋鹏飞
212206304 王柄盛
212206307 王伟强
212206308 温静远
212206309 吴静怡
212206310 吴翔宇
212206313 杨鹏
212206315 姚翔
212206316 叶锋
212206318 叶浙波
212206321 詹旭航
212206322 张杰
212206324 张益宁
212206326 赵思嘉
212206327 郑鹏俊
212206328 郑诗鹏
212206329 朱佳辉
212206330 祝豪政
212206428 陆俊谕
212207131 谢子建
212208324 赖美娟
212208407 陈锴德
212211108 陈惠民
212211113 陈永锐
212211211 郭运盛
212211227 梁永杰
212211316 谢宇杰
212211319 杨靖
212214381 林聪
212214417 周俊杰
212217240 吴昊
212217253 于建潮
212218111 黄晓彤

@ -0,0 +1,40 @@
package Java1113.lesson01;
public class Market1113 {
String name;
Product1113[] products;
//构造方法,用数组的形式创建超市对象以及商品清单
Market1113(String name, Product1113[] products) {
this.name = name;
this.products = products;
}
//情况1按商品名称销售单个商品
String sell(String productName) {
for (Product1113 product : products) {
if (product.getName().equals(productName)) {
return productName;
}
}
return null; // 商品不存在返回null
}
//情况2按商品清单销售多个商品
String sell(Product1113[] shoppingList) {
//设置已购商品为可变性字符串
StringBuilder ygsp = new StringBuilder();
for (Product1113 gwqd : shoppingList) {//遍历顾客购物清单
for (Product1113 product : products) {//遍历超市中所有商品
if (product.equals(gwqd)) {//如果二者相匹配
if (ygsp.length() > 0) {
ygsp.append(", ");//在商品列表中以逗号作为分隔符
}
ygsp.append(product.getName());//添加商品名称到到已购清单中
break; //跳出内循环,继续检测下一个顾客想要的商品
}
}
}
return ygsp.toString();//返回商品列表
}
String getName() {
return name;
}
}

@ -0,0 +1,19 @@
package Java1113.lesson01;
public class Person1113 {
String name;
//构造方法,创建顾客对象并设置姓名
Person1113(String name) {
this.name = name;
}
//当顾客去超市购买单个商品
String shopping(Market1113 market, String productName) {
return market.sell(productName);
}//调用sell方法购买单个商品并返回购买结果
//当顾客去超市购买多个商品
public String shopping(Market1113 market, Product1113[] shoppingList) {
return market.sell(shoppingList);
}//调用sell方法购买单个商品并返回购买结果
public String getName() {
return name;
}
}

@ -0,0 +1,23 @@
package Java1113.lesson01;
public class Product1113 {
String name;
//构造方法,创建商品对象并设置商品名
Product1113(String name) {
this.name = name;
}
String getName() {
return name;
}
//重写equals方法通过商品名比较两个商品是否相等
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null || getClass() != obj.getClass()) return false;
Product1113 product = (Product1113) obj;
return name.equals(product.name);
}
//重写toString方法将商品名以字符串的形式返回
public String toString() {
return name;
}
}

@ -0,0 +1,25 @@
package Java1113.lesson01;
public class Shopping1113 {
public static void main(String[] args) {
//创建超市对象,指定可售商品清单
Product1113[] marketProducts = {new Product1113("豆浆机"), new Product1113("吹风机"), new Product1113("破壁机"), new Product1113("咖啡机")};//创建超市物品清单
Market1113 market = new Market1113("永辉", marketProducts);
//创建购物者对象,指定姓名
Person1113 person = new Person1113("张木强");
//创建需要购买的商品清单
Product1113[] shoppingList = {new Product1113("豆浆机"), new Product1113("吹风机")};//创建顾客购物清单
//再构建顾客购物清单,使即使超市不含有购物清单中的商品也可输出顾客原始购物清单
StringBuilder gwqd = new StringBuilder();
for (Product1113 product : shoppingList) {
if (gwqd.length() > 0) {
gwqd.append(", ");
}
gwqd.append(product.getName());
}
//模拟顾客在超市购买商品
String ygm = person.shopping(market, shoppingList);
//输出顾客的购买的结果
System.out.println(person.getName() + "的购物清单:[" + gwqd + "]");
System.out.println(person.getName() + "在" + market.getName() + "超市买到了:" + ygm);
}
}

@ -0,0 +1,248 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>Person1113</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Person1113";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10};
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个类</li>
<li>下一个类</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/Person1113.html" target="_top">框架</a></li>
<li><a href="Person1113.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">Java1113.lesson01</div>
<h2 title="类 Person1113" class="title">类 Person1113</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>Java1113.lesson01.Person1113</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Person1113</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../Java1113/lesson01/Person1113.html#getName--">getName</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../Java1113/lesson01/Person1113.html#shopping-Java1113.lesson01.Market1113-Java1113.lesson01.Product1113:A-">shopping</a></span>(Java1113.lesson01.Market1113&nbsp;market,
Java1113.lesson01.Product1113[]&nbsp;shoppingList)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="shopping-Java1113.lesson01.Market1113-Java1113.lesson01.Product1113:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shopping</h4>
<pre>public&nbsp;java.lang.String&nbsp;shopping(Java1113.lesson01.Market1113&nbsp;market,
Java1113.lesson01.Product1113[]&nbsp;shoppingList)</pre>
</li>
</ul>
<a name="getName--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getName</h4>
<pre>public&nbsp;java.lang.String&nbsp;getName()</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个类</li>
<li>下一个类</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/Person1113.html" target="_top">框架</a></li>
<li><a href="Person1113.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,20 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>Java1113.lesson01</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<h1 class="bar"><a href="../../Java1113/lesson01/package-summary.html" target="classFrame">Java1113.lesson01</a></h1>
<div class="indexContainer">
<h2 title="Àà">Àà</h2>
<ul title="Àà">
<li><a href="Person1113.html" title="Java1113.lesson01ÖеÄÀà" target="classFrame">Person1113</a></li>
</ul>
</div>
</body>
</html>

@ -0,0 +1,138 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>Java1113.lesson01</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Java1113.lesson01";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个程序包</li>
<li>下一个程序包</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/package-summary.html" target="_top">框架</a></li>
<li><a href="package-summary.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="程序包" class="title">程序包&nbsp;Java1113.lesson01</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="类概要表, 列表类和解释">
<caption><span>类概要</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col"></th>
<th class="colLast" scope="col">说明</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类">Person1113</a></td>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个程序包</li>
<li>下一个程序包</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/package-summary.html" target="_top">框架</a></li>
<li><a href="package-summary.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,129 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>Java1113.lesson01 类分层结构</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Java1113.lesson01 \u7C7B\u5206\u5C42\u7ED3\u6784";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li class="navBarCell1Rev"></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/package-tree.html" target="_top">框架</a></li>
<li><a href="package-tree.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">程序包Java1113.lesson01的分层结构</h1>
</div>
<div class="contentContainer">
<h2 title="类分层结构">类分层结构</h2>
<ul>
<li type="circle">java.lang.Object
<ul>
<li type="circle">Java1113.lesson01.<a href="../../Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类"><span class="typeNameLink">Person1113</span></a></li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li class="navBarCell1Rev"></li>
<li><a href="../../deprecated-list.html">已过时</a></li>
<li><a href="../../index-files/index-1.html">索引</a></li>
<li><a href="../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?Java1113/lesson01/package-tree.html" target="_top">框架</a></li>
<li><a href="package-tree.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,19 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>ËùÓÐÀà</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1 class="bar">ËùÓÐÀà</h1>
<div class="indexContainer">
<ul>
<li><a href="Java1113/lesson01/Person1113.html" title="Java1113.lesson01ÖеÄÀà" target="classFrame">Person1113</a></li>
</ul>
</div>
</body>
</html>

@ -0,0 +1,19 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>ËùÓÐÀà</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1 class="bar">ËùÓÐÀà</h1>
<div class="indexContainer">
<ul>
<li><a href="Java1113/lesson01/Person1113.html" title="Java1113.lesson01ÖеÄÀà">Person1113</a></li>
</ul>
</div>
</body>
</html>

@ -0,0 +1,120 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>常量字段值</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="\u5E38\u91CF\u5B57\u6BB5\u503C";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?constant-values.html" target="_top">框架</a></li>
<li><a href="constant-values.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="常量字段值" class="title">常量字段值</h1>
<h2 title="目录">目录</h2>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?constant-values.html" target="_top">框架</a></li>
<li><a href="constant-values.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,120 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>已过时的列表</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="\u5DF2\u8FC7\u65F6\u7684\u5217\u8868";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li class="navBarCell1Rev">已过时</li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?deprecated-list.html" target="_top">框架</a></li>
<li><a href="deprecated-list.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="已过时的 API" class="title">已过时的 API</h1>
<h2 title="目录">目录</h2>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li class="navBarCell1Rev">已过时</li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?deprecated-list.html" target="_top">框架</a></li>
<li><a href="deprecated-list.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,217 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>API 帮助</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="API \u5E2E\u52A9";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li class="navBarCell1Rev">帮助</li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?help-doc.html" target="_top">框架</a></li>
<li><a href="help-doc.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">此 API 文档的组织方式</h1>
<div class="subTitle">此 API (应用程序编程接口) 文档包含对应于导航栏中的项目的页面, 如下所述。</div>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<h2>程序包</h2>
<p>每个程序包都有一个页面, 其中包含它的类和接口的列表及其概要。此页面可以包含六个类别:</p>
<ul>
<li>接口 (斜体)</li>
<li></li>
<li>枚举</li>
<li>异常错误</li>
<li>错误</li>
<li>注释类型</li>
</ul>
</li>
<li class="blockList">
<h2>类/接口</h2>
<p>每个类, 接口, 嵌套类和嵌套接口都有各自的页面。其中每个页面都由三部分 (类/接口说明, 概要表, 以及详细的成员说明) 组成:</p>
<ul>
<li>类继承图</li>
<li>直接子类</li>
<li>所有已知子接口</li>
<li>所有已知实现类</li>
<li>类/接口声明</li>
<li>类/接口说明</li>
</ul>
<ul>
<li>嵌套类概要</li>
<li>字段概要</li>
<li>构造器概要</li>
<li>方法概要</li>
</ul>
<ul>
<li>字段详细资料</li>
<li>构造器详细资料</li>
<li>方法详细资料</li>
</ul>
<p>每个概要条目都包含该项目的详细说明的第一句。概要条目按字母顺序排列, 而详细说明则按其在源代码中出现的顺序排列。这样保持了程序员所建立的逻辑分组。</p>
</li>
<li class="blockList">
<h2>注释类型</h2>
<p>每个注释类型都有各自的页面, 其中包含以下部分:</p>
<ul>
<li>注释类型声明</li>
<li>注释类型说明</li>
<li>必需元素概要</li>
<li>可选元素概要</li>
<li>元素详细资料</li>
</ul>
</li>
<li class="blockList">
<h2>枚举</h2>
<p>每个枚举都有各自的页面, 其中包含以下部分:</p>
<ul>
<li>枚举声明</li>
<li>枚举说明</li>
<li>枚举常量概要</li>
<li>枚举常量详细资料</li>
</ul>
</li>
<li class="blockList">
<h2>树 (类分层结构)</h2>
<p>对于所有程序包, 有一个<a href="overview-tree.html">类分层结构</a>页面, 以及每个程序包的分层结构。每个分层结构页面都包含类的列表和接口的列表。从<code>java.lang.Object</code>开始, 按继承结构对类进行排列。接口不从<code>java.lang.Object</code>继承。</p>
<ul>
<li>查看“概览”页面时, 单击 "树" 将显示所有程序包的分层结构。</li>
<li>查看特定程序包, 类或接口页面时, 单击 "树" 将仅显示该程序包的分层结构。</li>
</ul>
</li>
<li class="blockList">
<h2>已过时的 API</h2>
<p><a href="deprecated-list.html">已过时的 API</a> 页面列出了所有已过时的 API。一般由于进行了改进并且通常提供了替代的 API, 所以建议不要使用已过时的 API。在将来的实现过程中, 可能会删除已过时的 API。</p>
</li>
<li class="blockList">
<h2>索引</h2>
<p><a href="index-files/index-1.html">索引</a> 包含按字母顺序排列的所有类, 接口, 构造器, 方法和字段的列表。</p>
</li>
<li class="blockList">
<h2>上一个/下一个</h2>
<p>这些链接使您可以转至下一个或上一个类, 接口, 程序包或相关页面。</p>
</li>
<li class="blockList">
<h2>框架/无框架</h2>
<p>这些链接用于显示和隐藏 HTML 框架。所有页面均具有有框架和无框架两种显示方式。</p>
</li>
<li class="blockList">
<h2>所有类</h2>
<p><a href="allclasses-noframe.html">所有类</a>链接显示所有类和接口 (除了非静态嵌套类型)。</p>
</li>
<li class="blockList">
<h2>序列化表格</h2>
<p>每个可序列化或可外部化的类都有其序列化字段和方法的说明。此信息对重新实现者有用, 而对使用 API 的开发者则没有什么用处。尽管导航栏中没有链接, 但您可以通过下列方式获取此信息: 转至任何序列化类, 然后单击类说明的 "另请参阅" 部分中的 "序列化表格"。</p>
</li>
<li class="blockList">
<h2>常量字段值</h2>
<p><a href="constant-values.html">常量字段值</a>页面列出了静态最终字段及其值。</p>
</li>
</ul>
<span class="emphasizedPhrase">此帮助文件适用于使用标准 doclet 生成的 API 文档。</span></div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="overview-tree.html"></a></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li class="navBarCell1Rev">帮助</li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?help-doc.html" target="_top">框架</a></li>
<li><a href="help-doc.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,125 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>G - 索引</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="G - \u7D22\u5F15";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个字母</li>
<li><a href="index-2.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-1.html" target="_top">框架</a></li>
<li><a href="index-1.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;<a name="I:G">
<!-- -->
</a>
<h2 class="title">G</h2>
<dl>
<dt><span class="memberNameLink"><a href="../Java1113/lesson01/Person1113.html#getName--">getName()</a></span> - 类 中的方法Java1113.lesson01.<a href="../Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类">Person1113</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个字母</li>
<li><a href="index-2.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-1.html" target="_top">框架</a></li>
<li><a href="index-1.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,125 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>J - 索引</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="J - \u7D22\u5F15";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-1.html">上一个字母</a></li>
<li><a href="index-3.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-2.html" target="_top">框架</a></li>
<li><a href="index-2.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;<a name="I:J">
<!-- -->
</a>
<h2 class="title">J</h2>
<dl>
<dt><a href="../Java1113/lesson01/package-summary.html">Java1113.lesson01</a> - 程序包 Java1113.lesson01</dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-1.html">上一个字母</a></li>
<li><a href="index-3.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-2.html" target="_top">框架</a></li>
<li><a href="index-2.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,125 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>P - 索引</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="P - \u7D22\u5F15";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-2.html">上一个字母</a></li>
<li><a href="index-4.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-3.html" target="_top">框架</a></li>
<li><a href="index-3.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;<a name="I:P">
<!-- -->
</a>
<h2 class="title">P</h2>
<dl>
<dt><a href="../Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类"><span class="typeNameLink">Person1113</span></a> - <a href="../Java1113/lesson01/package-summary.html">Java1113.lesson01</a>中的类</dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-2.html">上一个字母</a></li>
<li><a href="index-4.html">下一个字母</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-3.html" target="_top">框架</a></li>
<li><a href="index-3.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,125 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>S - 索引</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="S - \u7D22\u5F15";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-3.html">上一个字母</a></li>
<li>下一个字母</li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-4.html" target="_top">框架</a></li>
<li><a href="index-4.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;<a name="I:S">
<!-- -->
</a>
<h2 class="title">S</h2>
<dl>
<dt><span class="memberNameLink"><a href="../Java1113/lesson01/Person1113.html#shopping-Java1113.lesson01.Market1113-Java1113.lesson01.Product1113:A-">shopping(Market1113, Product1113[])</a></span> - 类 中的方法Java1113.lesson01.<a href="../Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类">Person1113</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">G</a>&nbsp;<a href="index-2.html">J</a>&nbsp;<a href="index-3.html">P</a>&nbsp;<a href="index-4.html">S</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li><a href="../overview-tree.html"></a></li>
<li><a href="../deprecated-list.html">已过时</a></li>
<li class="navBarCell1Rev">索引</li>
<li><a href="../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-3.html">上一个字母</a></li>
<li>下一个字母</li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-4.html" target="_top">框架</a></li>
<li><a href="index-4.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,72 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>生成的文档 (无标题)</title>
<script type="text/javascript">
tmpTargetPage = "" + window.location.search;
if (tmpTargetPage != "" && tmpTargetPage != "undefined")
tmpTargetPage = tmpTargetPage.substring(1);
if (tmpTargetPage.indexOf(":") != -1 || (tmpTargetPage != "" && !validURL(tmpTargetPage)))
tmpTargetPage = "undefined";
targetPage = tmpTargetPage;
function validURL(url) {
try {
url = decodeURIComponent(url);
}
catch (error) {
return false;
}
var pos = url.indexOf(".html");
if (pos == -1 || pos != url.length - 5)
return false;
var allowNumber = false;
var allowSep = false;
var seenDot = false;
for (var i = 0; i < url.length - 5; i++) {
var ch = url.charAt(i);
if ('a' <= ch && ch <= 'z' ||
'A' <= ch && ch <= 'Z' ||
ch == '$' ||
ch == '_' ||
ch.charCodeAt(0) > 127) {
allowNumber = true;
allowSep = true;
} else if ('0' <= ch && ch <= '9'
|| ch == '-') {
if (!allowNumber)
return false;
} else if (ch == '/' || ch == '.') {
if (!allowSep)
return false;
allowNumber = false;
allowSep = false;
if (ch == '.')
seenDot = true;
if (ch == '/' && seenDot)
return false;
} else {
return false;
}
}
return true;
}
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;
}
</script>
</head>
<frameset cols="20%,80%" title="Documentation frame" onload="top.loadFrames()">
<frame src="allclasses-frame.html" name="packageFrame" title="所有类和接口 (除了非静态嵌套类型)">
<frame src="Java1113/lesson01/package-summary.html" name="classFrame" title="程序包, 类和接口说明" scrolling="yes">
<noframes>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<h2>框架预警</h2>
<p>请使用框架功能查看此文档。如果看到此消息, 则表明您使用的是不支持框架的 Web 客户机。链接到<a href="Java1113/lesson01/package-summary.html">非框架版本</a></p>
</noframes>
</frameset>
</html>

@ -0,0 +1,133 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_271) on Sun Sep 01 22:49:20 CST 2024 -->
<title>类分层结构</title>
<meta name="date" content="2024-09-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="\u7C7B\u5206\u5C42\u7ED3\u6784";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li class="navBarCell1Rev"></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?overview-tree.html" target="_top">框架</a></li>
<li><a href="overview-tree.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">所有程序包的分层结构</h1>
<span class="packageHierarchyLabel">程序包分层结构:</span>
<ul class="horizontal">
<li><a href="Java1113/lesson01/package-tree.html">Java1113.lesson01</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="类分层结构">类分层结构</h2>
<ul>
<li type="circle">java.lang.Object
<ul>
<li type="circle">Java1113.lesson01.<a href="Java1113/lesson01/Person1113.html" title="Java1113.lesson01中的类"><span class="typeNameLink">Person1113</span></a></li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="Java1113/lesson01/package-summary.html">程序包</a></li>
<li></li>
<li class="navBarCell1Rev"></li>
<li><a href="deprecated-list.html">已过时</a></li>
<li><a href="index-files/index-1.html">索引</a></li>
<li><a href="help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个</li>
<li>下一个</li>
</ul>
<ul class="navList">
<li><a href="index.html?overview-tree.html" target="_top">框架</a></li>
<li><a href="overview-tree.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

@ -0,0 +1,30 @@
function show(type)
{
count = 0;
for (var key in methods) {
var row = document.getElementById(key);
if ((methods[key] & type) != 0) {
row.style.display = '';
row.className = (count++ % 2) ? rowColor : altColor;
}
else
row.style.display = 'none';
}
updateTabs(type);
}
function updateTabs(type)
{
for (var value in tabs) {
var sNode = document.getElementById(tabs[value][0]);
var spanNode = sNode.firstChild;
if (value == type) {
sNode.className = activeTableTab;
spanNode.innerHTML = tabs[value][1];
}
else {
sNode.className = tableTab;
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
}
}
}

@ -0,0 +1,574 @@
/* Javadoc style sheet */
/*
Overall document style
*/
@import url('resources/fonts/dejavu.css');
body {
background-color:#ffffff;
color:#353833;
font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
font-size:14px;
margin:0;
}
a:link, a:visited {
text-decoration:none;
color:#4A6782;
}
a:hover, a:focus {
text-decoration:none;
color:#bb7a2a;
}
a:active {
text-decoration:none;
color:#4A6782;
}
a[name] {
color:#353833;
}
a[name]:hover {
text-decoration:none;
color:#353833;
}
pre {
font-family:'DejaVu Sans Mono', monospace;
font-size:14px;
}
h1 {
font-size:20px;
}
h2 {
font-size:18px;
}
h3 {
font-size:16px;
font-style:italic;
}
h4 {
font-size:13px;
}
h5 {
font-size:12px;
}
h6 {
font-size:11px;
}
ul {
list-style-type:disc;
}
code, tt {
font-family:'DejaVu Sans Mono', monospace;
font-size:14px;
padding-top:4px;
margin-top:8px;
line-height:1.4em;
}
dt code {
font-family:'DejaVu Sans Mono', monospace;
font-size:14px;
padding-top:4px;
}
table tr td dt code {
font-family:'DejaVu Sans Mono', monospace;
font-size:14px;
vertical-align:top;
padding-top:4px;
}
sup {
font-size:8px;
}
/*
Document title and Copyright styles
*/
.clear {
clear:both;
height:0px;
overflow:hidden;
}
.aboutLanguage {
float:right;
padding:0px 21px;
font-size:11px;
z-index:200;
margin-top:-9px;
}
.legalCopy {
margin-left:.5em;
}
.bar a, .bar a:link, .bar a:visited, .bar a:active {
color:#FFFFFF;
text-decoration:none;
}
.bar a:hover, .bar a:focus {
color:#bb7a2a;
}
.tab {
background-color:#0066FF;
color:#ffffff;
padding:8px;
width:5em;
font-weight:bold;
}
/*
Navigation bar styles
*/
.bar {
background-color:#4D7A97;
color:#FFFFFF;
padding:.8em .5em .4em .8em;
height:auto;/*height:1.8em;*/
font-size:11px;
margin:0;
}
.topNav {
background-color:#4D7A97;
color:#FFFFFF;
float:left;
padding:0;
width:100%;
clear:right;
height:2.8em;
padding-top:10px;
overflow:hidden;
font-size:12px;
}
.bottomNav {
margin-top:10px;
background-color:#4D7A97;
color:#FFFFFF;
float:left;
padding:0;
width:100%;
clear:right;
height:2.8em;
padding-top:10px;
overflow:hidden;
font-size:12px;
}
.subNav {
background-color:#dee3e9;
float:left;
width:100%;
overflow:hidden;
font-size:12px;
}
.subNav div {
clear:left;
float:left;
padding:0 0 5px 6px;
text-transform:uppercase;
}
ul.navList, ul.subNavList {
float:left;
margin:0 25px 0 0;
padding:0;
}
ul.navList li{
list-style:none;
float:left;
padding: 5px 6px;
text-transform:uppercase;
}
ul.subNavList li{
list-style:none;
float:left;
}
.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
color:#FFFFFF;
text-decoration:none;
text-transform:uppercase;
}
.topNav a:hover, .bottomNav a:hover {
text-decoration:none;
color:#bb7a2a;
text-transform:uppercase;
}
.navBarCell1Rev {
background-color:#F8981D;
color:#253441;
margin: auto 5px;
}
.skipNav {
position:absolute;
top:auto;
left:-9999px;
overflow:hidden;
}
/*
Page header and footer styles
*/
.header, .footer {
clear:both;
margin:0 20px;
padding:5px 0 0 0;
}
.indexHeader {
margin:10px;
position:relative;
}
.indexHeader span{
margin-right:15px;
}
.indexHeader h1 {
font-size:13px;
}
.title {
color:#2c4557;
margin:10px 0;
}
.subTitle {
margin:5px 0 0 0;
}
.header ul {
margin:0 0 15px 0;
padding:0;
}
.footer ul {
margin:20px 0 5px 0;
}
.header ul li, .footer ul li {
list-style:none;
font-size:13px;
}
/*
Heading styles
*/
div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
background-color:#dee3e9;
border:1px solid #d0d9e0;
margin:0 0 6px -8px;
padding:7px 5px;
}
ul.blockList ul.blockList ul.blockList li.blockList h3 {
background-color:#dee3e9;
border:1px solid #d0d9e0;
margin:0 0 6px -8px;
padding:7px 5px;
}
ul.blockList ul.blockList li.blockList h3 {
padding:0;
margin:15px 0;
}
ul.blockList li.blockList h2 {
padding:0px 0 20px 0;
}
/*
Page layout container styles
*/
.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
clear:both;
padding:10px 20px;
position:relative;
}
.indexContainer {
margin:10px;
position:relative;
font-size:12px;
}
.indexContainer h2 {
font-size:13px;
padding:0 0 3px 0;
}
.indexContainer ul {
margin:0;
padding:0;
}
.indexContainer ul li {
list-style:none;
padding-top:2px;
}
.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
font-size:12px;
font-weight:bold;
margin:10px 0 0 0;
color:#4E4E4E;
}
.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
margin:5px 0 10px 0px;
font-size:14px;
font-family:'DejaVu Sans Mono',monospace;
}
.serializedFormContainer dl.nameValue dt {
margin-left:1px;
font-size:1.1em;
display:inline;
font-weight:bold;
}
.serializedFormContainer dl.nameValue dd {
margin:0 0 0 1px;
font-size:1.1em;
display:inline;
}
/*
List styles
*/
ul.horizontal li {
display:inline;
font-size:0.9em;
}
ul.inheritance {
margin:0;
padding:0;
}
ul.inheritance li {
display:inline;
list-style:none;
}
ul.inheritance li ul.inheritance {
margin-left:15px;
padding-left:15px;
padding-top:1px;
}
ul.blockList, ul.blockListLast {
margin:10px 0 10px 0;
padding:0;
}
ul.blockList li.blockList, ul.blockListLast li.blockList {
list-style:none;
margin-bottom:15px;
line-height:1.4;
}
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
padding:0px 20px 5px 10px;
border:1px solid #ededed;
background-color:#f8f8f8;
}
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
padding:0 0 5px 8px;
background-color:#ffffff;
border:none;
}
ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
margin-left:0;
padding-left:0;
padding-bottom:15px;
border:none;
}
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
list-style:none;
border-bottom:none;
padding-bottom:0;
}
table tr td dl, table tr td dl dt, table tr td dl dd {
margin-top:0;
margin-bottom:1px;
}
/*
Table styles
*/
.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
width:100%;
border-left:1px solid #EEE;
border-right:1px solid #EEE;
border-bottom:1px solid #EEE;
}
.overviewSummary, .memberSummary {
padding:0px;
}
.overviewSummary caption, .memberSummary caption, .typeSummary caption,
.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
position:relative;
text-align:left;
background-repeat:no-repeat;
color:#253441;
font-weight:bold;
clear:none;
overflow:hidden;
padding:0px;
padding-top:10px;
padding-left:1px;
margin:0px;
white-space:pre;
}
.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link,
.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link,
.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover,
.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover,
.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active,
.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active,
.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited,
.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited {
color:#FFFFFF;
}
.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,
.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {
white-space:nowrap;
padding-top:5px;
padding-left:12px;
padding-right:12px;
padding-bottom:7px;
display:inline-block;
float:left;
background-color:#F8981D;
border: none;
height:16px;
}
.memberSummary caption span.activeTableTab span {
white-space:nowrap;
padding-top:5px;
padding-left:12px;
padding-right:12px;
margin-right:3px;
display:inline-block;
float:left;
background-color:#F8981D;
height:16px;
}
.memberSummary caption span.tableTab span {
white-space:nowrap;
padding-top:5px;
padding-left:12px;
padding-right:12px;
margin-right:3px;
display:inline-block;
float:left;
background-color:#4D7A97;
height:16px;
}
.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {
padding-top:0px;
padding-left:0px;
padding-right:0px;
background-image:none;
float:none;
display:inline;
}
.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
display:none;
width:5px;
position:relative;
float:left;
background-color:#F8981D;
}
.memberSummary .activeTableTab .tabEnd {
display:none;
width:5px;
margin-right:3px;
position:relative;
float:left;
background-color:#F8981D;
}
.memberSummary .tableTab .tabEnd {
display:none;
width:5px;
margin-right:3px;
position:relative;
background-color:#4D7A97;
float:left;
}
.overviewSummary td, .memberSummary td, .typeSummary td,
.useSummary td, .constantsSummary td, .deprecatedSummary td {
text-align:left;
padding:0px 0px 12px 10px;
}
th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
vertical-align:top;
padding-right:0px;
padding-top:8px;
padding-bottom:3px;
}
th.colFirst, th.colLast, th.colOne, .constantsSummary th {
background:#dee3e9;
text-align:left;
padding:8px 3px 3px 7px;
}
td.colFirst, th.colFirst {
white-space:nowrap;
font-size:13px;
}
td.colLast, th.colLast {
font-size:13px;
}
td.colOne, th.colOne {
font-size:13px;
}
.overviewSummary td.colFirst, .overviewSummary th.colFirst,
.useSummary td.colFirst, .useSummary th.colFirst,
.overviewSummary td.colOne, .overviewSummary th.colOne,
.memberSummary td.colFirst, .memberSummary th.colFirst,
.memberSummary td.colOne, .memberSummary th.colOne,
.typeSummary td.colFirst{
width:25%;
vertical-align:top;
}
td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
font-weight:bold;
}
.tableSubHeadingColor {
background-color:#EEEEFF;
}
.altColor {
background-color:#FFFFFF;
}
.rowColor {
background-color:#EEEEEF;
}
/*
Content styles
*/
.description pre {
margin-top:0;
}
.deprecatedContent {
margin:0;
padding:10px 0;
}
.docSummary {
padding:0;
}
ul.blockList ul.blockList ul.blockList li.blockList h3 {
font-style:normal;
}
div.block {
font-size:14px;
font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
}
td.colLast div {
padding-top:0px;
}
td.colLast a {
padding-bottom:3px;
}
/*
Formatting effect styles
*/
.sourceLineNo {
color:green;
padding:0 30px 0 0;
}
h1.hidden {
visibility:hidden;
overflow:hidden;
font-size:10px;
}
.block {
display:block;
margin:3px 10px 2px 0px;
color:#474747;
}
.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
font-weight:bold;
}
.deprecationComment, .emphasizedPhrase, .interfaceName {
font-style:italic;
}
div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase,
div.block div.block span.interfaceName {
font-style:normal;
}
div.contentContainer ul.blockList li.blockList h2{
padding-bottom:0px;
}

@ -0,0 +1,54 @@
package Java1113.selection;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Random;
public class SelectionWin1113 extends Application {
private Label selectedLabel; // 定义选中学生信息的标签
public void start(Stage primaryStage) {
VBox root = new VBox(10); // 创建一个垂直布局的根节点
root.setAlignment(Pos.CENTER); // 设置根节点的对齐方式
// 创建并设置标签
Label label = new Label("212211113:陈永锐");
root.getChildren().add(label);
// 创建按钮并设置事件处理
Button btn = new Button("随机选人");
btn.setOnAction(e -> {
String[] students = loadStudentList();
if (students != null && students.length > 0) {
int index = new Random().nextInt(students.length);
selectedLabel.setText("恭喜 " + students[index] + " 被选中");
}
});
root.getChildren().add(btn);
// 创建选中学生信息的标签,并将其放置在按钮下方
selectedLabel = new Label(); // 初始化选中学生信息的标签
root.getChildren().add(selectedLabel);
Scene scene = new Scene(root, 300, 200); // 创建场景
primaryStage.setTitle("随机选人"); // 设置舞台标题
primaryStage.setScene(scene); // 设置舞台的场景
primaryStage.show(); // 显示舞台
}
private String[] loadStudentList() {
// 使用绝对路径
String absolutePath = "C:/Java1113/Java1113/_01Lesson1113/src/Java1113/selection/data/StudentList.txt";
try {
return Files.readAllLines(Paths.get(absolutePath)).toArray(new String[0]);
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
public static void main(String[] args) {
launch(args); // 启动JavaFX应用程序
}
}

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,87 @@
package java1113.lesson02;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
import java.util.Arrays;
import java.util.stream.Collectors;
public class StringSort1113 extends Application {
public static void main(String[] args) {
launch(args);
}
public void start(Stage primaryStage) {
// 设置舞台的标题
primaryStage.setTitle("排序数字字符串");
// 调用getRoot方法创建根节点
Parent root = getRoot();
// 用根节点创建Scene并增加宽度和高度
Scene scene = new Scene(root, 500.0, 350.0); // 修改尺寸参数为double类型
// 为Stage指定Scene
primaryStage.setScene(scene);
// 显示Stage
primaryStage.show();
}
// 创建根节点的方法
private Parent getRoot() {
Label lblStudent = new Label("212211113 陈永锐");
// 边框【注意】多行代码的书写规范
BorderStroke bs = new BorderStroke(Paint.valueOf("#8FBC8F"), // 边框的颜色
BorderStrokeStyle.DOTTED, // 边框的样式
new CornerRadii(10), // 边框四个角的圆角
new BorderWidths(3)); // 边框的宽度
lblStudent.setBorder(new Border(bs)); // 设置边框
lblStudent.setPadding(new Insets(10)); // 设置边距
// 水平排列的两个控件,用于输入
HBox hText = new HBox(10);
Label lblText = new Label("输入数字串:");
TextField tfText = new TextField();
tfText.setPromptText("用空格分隔的数字串"); // 文本无内容时显示的提示信息
hText.getChildren().addAll(lblText, tfText);
hText.setAlignment(Pos.CENTER_LEFT); // 两个控件的对齐方式
Button button = new Button("排序");
Label lblPrint = new Label(""); // 显示排序结果
// 垂直排列的根节点
VBox root = new VBox(20); // 节点之间的垂直间距20
// 为根节点添加子节点
root.getChildren().addAll(lblStudent, hText, button, lblPrint);
root.setPadding(new Insets(20.0)); // 设置根节点的边距
root.setAlignment(Pos.TOP_CENTER); // 根节点中各节点的对齐方式
root.setStyle("-fx-font-size: 20;"); // 用CSS样式设置容器中所有节点的字体大小
// 添加按钮的事件处理程序
button.setOnAction(e -> {
String input = tfText.getText();
String sortedNumbers = sortNumbers(input);
lblPrint.setText("排序结果:"+sortedNumbers);
});
return root;
}
// 排序数字字符串的方法
private String sortNumbers(String input) {
return Arrays.stream(input.split("\\s+")) // 允许任意空白字符作为分隔符
.map(Integer::parseInt)
.sorted()
.map(String::valueOf)
.collect(Collectors.joining(" "));
}
}

@ -0,0 +1,80 @@
package java1113.lesson02;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
import java.util.Arrays;
import java.util.stream.Collectors;
public class Word1113 extends Application {
public static void main(String[] args) {
launch(args);
}
public void start(Stage primaryStage) {
// 设置舞台的标题
primaryStage.setTitle("提取三个字符的单词");
// 调用getRoot方法创建根节点
Parent root = getRoot();
// 用根节点创建Scene并增加宽度和高度
Scene scene = new Scene(root, 450, 350);
// 为Stage指定Scene
primaryStage.setScene(scene);
// 显示Stage
primaryStage.show();
}
// 创建根节点的方法
private Parent getRoot() {
Label infoLabel = new Label("212211113 陈永锐");
// 边框【注意】多行代码的书写规范
BorderStroke bs = new BorderStroke(Paint.valueOf("#8FBC8F"), // 边框的颜色
BorderStrokeStyle.DOTTED, // 边框的样式
new CornerRadii(10), // 边框四个角的圆角
new BorderWidths(3)); // 边框的宽度
infoLabel.setBorder(new Border(bs)); // 设置边框
infoLabel.setPadding(new Insets(10)); // 设置边距
// 水平排列的两个控件,用于输入
HBox inputBox = new HBox(10);
Label inputLabel = new Label("输入单词:");
TextField inputField = new TextField();
inputField.setPromptText("输入单词"); // 文本无内容时显示的提示信息
inputBox.getChildren().addAll(inputLabel, inputField);
inputBox.setAlignment(Pos.CENTER_LEFT); // 两个控件的对齐方式
Button extractButton = new Button("提取单词");
Label resultLabel = new Label(); // 显示提取结果
// 垂直排列的根节点
VBox root = new VBox(20); // 节点之间的垂直间距20
// 为根节点添加子节点
root.getChildren().addAll(infoLabel, inputBox, extractButton, resultLabel);
root.setPadding(new Insets(20.0)); // 设置根节点的边距
root.setAlignment(Pos.TOP_CENTER); // 根节点中各节点的对齐方式
root.setStyle("-fx-font-size:20"); // 用CSS样式设置容器中所有节点的字体大小
// 添加按钮的事件处理程序
extractButton.setOnAction(e -> {
String input = inputField.getText();
String extractedWords = extractWords(input);
resultLabel.setText(extractedWords);
});
return root;
}
// 提取三个字符的单词的方法
String extractWords(String input) {
return Arrays.stream(input.split("[ ,]+")) // 允许空格和逗号作为分隔符
.filter(word -> word.length() == 3)
.collect(Collectors.joining(" ")); // 将过滤后的单词用空格连接
}
}

@ -0,0 +1,86 @@
package java1113.lesson02.regex;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.CornerRadii;
import javafx.geometry.Pos; // 导入用于对齐的Pos类
import java.util.regex.Pattern;
public class CheckRegex1113 extends Application {
private ListView<String> resultList; // 将 resultList 定义为类的成员变量
public void start(Stage primaryStage) {
VBox inputBox = getRoot(); // 获取输入区域的布局
this.resultList = getListView(); // 初始化结果列表
HBox mainLayout = new HBox(10); // 创建一个水平布局,用于放置输入区域和结果列表
mainLayout.setPadding(new Insets(10)); // 设置布局的内边距
mainLayout.setSpacing(10); // 设置布局中组件之间的间距
mainLayout.getChildren().addAll(inputBox, resultList); // 将输入区域和结果列表添加到水平布局中
Scene scene = new Scene(mainLayout, 775, 455); // 创建场景,并设置场景的尺寸
primaryStage.setTitle("正则表达式验证器"); // 设置舞台的标题
primaryStage.setScene(scene); // 将场景设置到舞台上
primaryStage.show(); // 显示舞台
}
private VBox getRoot() {
VBox inputBox = new VBox(10); // 创建一个垂直布局,用于放置输入相关的组件
inputBox.setPadding(new Insets(10)); // 设置布局的内边距
inputBox.setSpacing(5); // 设置布局中组件之间的间距
Label studentInfo = new Label("212211113 陈永锐");
styleLabel(studentInfo); // 为标签设置样式
studentInfo.setAlignment(Pos.CENTER); // 设置标签在水平方向上居中
HBox hboxForStudentInfo = new HBox(10); // 创建一个水平布局,用于放置学生信息标签
hboxForStudentInfo.setAlignment(Pos.CENTER); // 设置水平布局在水平方向上居中
hboxForStudentInfo.getChildren().add(studentInfo);
HBox regexHBox = new HBox(10); // 创建一个水平布局,用于放置正则表达式标签和输入框
regexHBox.setAlignment(Pos.CENTER_LEFT); // 设置水平布局中组件的对齐方式
Label regexLabel = new Label("正则表达式:");
TextField regexField = new TextField(); // 创建一个文本输入框,用于输入正则表达式
regexField.setPromptText("请输入正则表达式");
regexField.setPrefColumnCount(20); // 设置输入框的列数
regexHBox.getChildren().addAll(regexLabel, regexField); // 将标签和输入框添加到水平布局中
Label inputLabel = new Label("输入要检验的一组字符串(用逗号分隔):");
inputLabel.setAlignment(Pos.CENTER); // 设置标签在水平方向上居中
HBox inputHBox = new HBox(10); // 创建一个水平布局,用于放置输入标签
inputHBox.setAlignment(Pos.CENTER);
inputHBox.getChildren().add(inputLabel); // 将标签添加到水平布局中
TextArea inputArea = new TextArea(); // 创建一个文本区域,用于输入要验证的字符串
inputArea.setPromptText("例如: 2018-10,2018-05,2018-5");
inputArea.setPrefColumnCount(20); // 设置文本区域的列数
Button checkButton = new Button("验证字符串是否属于正则表达式"); // 创建一个按钮,用于触发验证操作
checkButton.setOnAction(e -> validateRegex(regexField.getText(), inputArea.getText())); // 为按钮设置事件处理器
HBox buttonHBox = new HBox(checkButton); // 创建一个水平布局,用于放置按钮
buttonHBox.setAlignment(Pos.CENTER); // 设置水平布局中组件的对齐方式
inputBox.getChildren().addAll(hboxForStudentInfo, regexHBox, inputHBox, inputArea, buttonHBox); // 将所有组件添加到垂直布局中
return inputBox; // 返回输入区域的布局
}
private ListView<String> getListView() {
ListView<String> resultList = new ListView<>(); // 创建一个ListView用于显示验证结果
return resultList; // 返回ListView
}
private void styleLabel(Label label) {
BorderStroke bs = new BorderStroke(Paint.valueOf("#8FBC8F"), BorderStrokeStyle.DOTTED, new CornerRadii(10), new BorderWidths(3)); // 创建一个边框样式
label.setBorder(new Border(bs)); // 为标签设置边框
label.setPadding(new Insets(10)); // 为标签设置内边距
}
private void validateRegex(String regex, String input) {
resultList.getItems().clear(); // 清空之前的验证结果
String[] inputs = input.split(","); // 将输入的字符串按逗号分隔
for (String str : inputs) {
str = str.trim(); // 去除字符串两端的空白
boolean matches = Pattern.matches(regex, str); // 验证字符串是否符合正则表达式
resultList.getItems().add(str + (matches ? ":true" : ":false")); // 将验证结果添加到ListView中
}
}
public static void main(String[] args) {
launch(args); // 启动JavaFX应用程序
}
}

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,88 @@
package java1113.lesson03;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.DayOfWeek;
import java.time.YearMonth;
import java.util.Scanner;
public class EndDate1113 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// 输入提示
System.out.print("请按yyyy-MM-dd的格式输入开班日期: ");
String startDate = scanner.nextLine(); // 获取输入的开班日期
String endDate = calc1113(startDate); // 调用calcXXXX方法计算结业日期
if (endDate != null) {
System.out.println("培训15天结业日期: " + endDate); // 输出结业日期
} else {
System.out.println("null"); // 如果日期不合法输出null
}
}
public static String calc1113(String startDate) {
// 去除输入字符串的多余空格
startDate = startDate.trim().replace(" ", "");
// 判断输入是否为空或全是空格
if (startDate.isEmpty()) {
return null;
}
// 校验日期格式(年份四位、月份两位、日期两位)
if (!startDate.matches("\\d{4}-\\d{2}-\\d{2}")) {
return null;
}
// 尝试解析日期,避免无效日期
try {
// 提取输入的年月日
String[] parts = startDate.split("-");
int inputYear = Integer.parseInt(parts[0]);
int inputMonth = Integer.parseInt(parts[1]);
int inputDay = Integer.parseInt(parts[2]);
// 手动校验月份范围是否在1到12之间
if (inputMonth < 1 || inputMonth > 12) {
return null; // 非法月份
}
// 校验月份和日期
YearMonth yearMonth = YearMonth.of(inputYear, inputMonth);
if (inputDay < 1 || inputDay > yearMonth.lengthOfMonth()) {
return null; // 如果天数超过该月份的最大天数返回null
}
// 解析为LocalDate
LocalDate parsedDate = LocalDate.of(inputYear, inputMonth, inputDay);
// 计算结业日期15天后
LocalDate endLocalDate = parsedDate.plusDays(15);
// 按指定格式输出结业日期,包括"年-月-日"格式及星期几
DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy年M月d日");
String formattedDate = endLocalDate.format(outputFormatter);
// 获取结业日期的星期几
DayOfWeek dayOfWeek = endLocalDate.getDayOfWeek();
String dayInChinese = getDayInChinese(dayOfWeek);
return formattedDate + " " + dayInChinese;
} catch (Exception e) {
// 处理任何潜在的异常
return null;
}
}
// 将DayOfWeek转换为中文星期几
public static String getDayInChinese(DayOfWeek dayOfWeek) {
switch (dayOfWeek) {
case MONDAY:
return "星期一";
case TUESDAY:
return "星期二";
case WEDNESDAY:
return "星期三";
case THURSDAY:
return "星期四";
case FRIDAY:
return "星期五";
case SATURDAY:
return "星期六";
case SUNDAY:
return "星期日";
default:
return "";
}
}
}

@ -0,0 +1,49 @@
package java1113.lesson03;
import java.time.YearMonth;
import java.util.Scanner;
public class LastDay1113 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// 输入提示
System.out.println("计算某月的最后一天");
System.out.print("请按yyyy-MM的格式输入年月: ");
String input = scanner.nextLine().trim(); // 获取输入的年月并去除头尾空格
String lastDay = getLastDay1113(input); // 调用getLastDayXXXX方法计算该月最后一天
if (lastDay != null) {
System.out.println("本月最后一天是" + lastDay + "日");
} else {
System.out.println("格式错误");
}
}
public static String getLastDay1113(String input) {
// 去除输入字符串的多余空格
input = input.replace(" ", "");
// 判断输入是否为空或全是空格
if (input.isEmpty()) {
return null;
}
// 校验输入格式(年份四位,月份一位或两位)
if (!input.matches("\\d{4}(-\\d{1,2})?")) {
return null;
}
// 尝试解析年月,避免无效日期
try {
// 提取输入的年和月
String[] parts = input.split("-");
int year = Integer.parseInt(parts[0]);
int month = (parts.length > 1) ? Integer.parseInt(parts[1]) : 1; // 如果月份未指定默认为1月
// 校验月份范围是否在1到12之间
if (month < 1 || month > 12) {
return null; // 非法月份
}
// 根据年月获取该月最后一天
YearMonth yearMonth = YearMonth.of(year, month);
int lastDay = yearMonth.lengthOfMonth();
return String.valueOf(lastDay); // 直接返回最后一天的数字
} catch (Exception e) {
// 处理任何潜在的异常
return null;
}
}
}

@ -0,0 +1,4 @@
package java1113.newdate;
public class MotherDays1113 {
}

@ -0,0 +1,8 @@
package java1113.newdate;
import javafx.scene.input.MouseEvent;
public class MothersDay1113Controller {
public void buttonClick(MouseEvent mouseEvent) {
}
}

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Spinner?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<VBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="200.0" prefWidth="400.0" spacing="20.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="java1113.newdate.MothersDay1113Controller">
<children>
<HBox alignment="CENTER" prefHeight="63.0" prefWidth="380.0" spacing="20.0">
<children>
<Spinner fx:id="sYear" initialValue="2021" max="9999" min="1" prefHeight="36.0" prefWidth="111.0" />
<Label text="年母亲节" />
<Button mnemonicParsing="false" onMouseClicked="#buttonClick" text="计算" />
</children>
</HBox>
<Label fx:id="lblMothersDay" />
<Label text="by 学号:姓名" />
</children>
<padding>
<Insets left="10.0" right="10.0" />
</padding>
</VBox>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,58 @@
package java1113.lesson04;
import java.util.*;
class Student1113 {
private final String name;
private final int age;
public Student1113(String name, int age) {
this.name = name;
this.age = age;
}
public String toString() {
return name + ": " + age;
}
}
public class Foreach1113 {
// 使用迭代器遍历
public static <E> void useIterator1113(Collection<E> collection) {
Iterator<E> iterator = collection.iterator();
while (iterator.hasNext()) {
System.out.println(iterator.next());
}
}
// 使用增强for循环遍历
public static <E> void useForeach1113(Collection<E> collection) {
for (E element : collection) {
System.out.println(element);
}
}
// 使用索引遍历
public static <E> void useList1113(List<E> list) {
for (int i = 0; i < list.size(); i++) {
System.out.println(i + ". " + list.get(i));
}
}
// 将集合转换为数组并遍历
public static <E> void useArray1113(Collection<E> collection) {
E[] array = (E[]) collection.toArray(new Object[0]);
for (E element : array) {
System.out.println(element);
}
}
public static void main(String[] args) {
// 创建Student对象并加入集合
List<Student1113> students = new ArrayList<>();
students.add(new Student1113("小明", 21));
students.add(new Student1113("大牛", 22));
students.add(new Student1113("阿严", 21));
// 调用不同的遍历方法
System.out.println("Iterator遍历:");
useIterator1113(students);
System.out.println("Foreach遍历:");
useForeach1113(students);
System.out.println("List遍历:");
useList1113(students);
System.out.println("Array遍历:");
useArray1113(students);
}
}

@ -0,0 +1,25 @@
package java1113.lesson04;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class ListFilter1113 extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("/java1113/lesson04/ListFilter1113View.fxml"));
if (root == null) {
throw new RuntimeException("文件未找到");
}
primaryStage.setTitle("筛选随机数");
primaryStage.setScene(new Scene(root));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}

@ -0,0 +1,46 @@
package java1113.lesson04;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListView;
import javafx.scene.control.Label;
import java.util.Random;
public class ListFilter1113Controller {
@FXML
private ListView<Integer> lvAll;
@FXML
private ListView<Integer> lv5;
@FXML
private Label lbl5;
@FXML
public void initialize() {
buttonClick(); // 初始化界面时填充数据
}
private void buttonClick() {
ObservableList<Integer> allNumbers = createList1113();
lvAll.setItems(allNumbers);
ObservableList<Integer> multiplesOfFive = findList1113(allNumbers);
lv5.setItems(multiplesOfFive);
lbl5.setText("其中5的倍数 (" + multiplesOfFive.size() + " 个)");
}
private ObservableList<Integer> createList1113() {
ObservableList<Integer> list = FXCollections.observableArrayList();
Random random = new Random();
for (int i = 0; i < 20; i++) {
list.add(random.nextInt(41) + 60); // Generates a number between 60 and 100
}
return list;
}
private ObservableList<Integer> findList1113(ObservableList<Integer> originalList) {
ObservableList<Integer> filteredList = FXCollections.observableArrayList();
for (Integer number : originalList) {
if (number % 5 == 0) {
filteredList.add(number);
}
}
return filteredList;
}
}

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="java1113.lesson04.ListFilter1113Controller">
<center>
<GridPane BorderPane.alignment="CENTER">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="20个[60,100]的随机数">
<GridPane.margin>
<Insets bottom="10.0" left="20.0" right="10.0" top="20.0" />
</GridPane.margin>
</Label>
<ListView fx:id="lvAll" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS">
<GridPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" />
</GridPane.margin>
</ListView>
<Label fx:id="lbl5" text="其中5的倍数" GridPane.columnIndex="1">
<GridPane.margin>
<Insets bottom="10.0" left="20.0" right="10.0" top="20.0" />
</GridPane.margin>
</Label>
<ListView fx:id="lv5" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS">
<GridPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" />
</GridPane.margin>
</ListView>
</children>
</GridPane>
</center>
<bottom>
<Label text="by 21211113陈永锐" BorderPane.alignment="CENTER" />
</bottom>
<top>
<Button mnemonicParsing="false" onAction="#buttonClick" text="再来一次" BorderPane.alignment="CENTER" />
</top>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</BorderPane>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,18 @@
package java1113.lesson05;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
public class HashSetRandom1113 {
public static void main(String[] args) {
Set<Integer> numbers = new HashSet<>();
Random random = new Random();
while (numbers.size() < 10) {
int randomNumber = 50 + random.nextInt(31);
numbers.add(randomNumber);
}
for (Integer number : numbers) {
System.out.println(number);
}
}
}

@ -0,0 +1,70 @@
package java1113.lesson05;
import java.util.*;
public class PointDemo1113 {
static class Point1113 implements Comparable<Point1113> {
private final int x;
private final int y;
public Point1113(int x, int y) {
this.x = x;
this.y = y;
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (this == obj) return true;
if (!(obj instanceof Point1113)) return false;
Point1113 other = (Point1113) obj;
return x == other.x && y == other.y;
}
@Override
public int hashCode() {
return x * 31 + y;
}
public int compareTo(Point1113 other) {
if (x != other.x) {
return x - other.x;
}
return y - other.y;
}
@Override
public String toString() {
return String.format("(%d,%d)", x, y);
}
}
public void demoTreeSet() {
SortedSet<Point1113> points = new TreeSet<>();
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 31));
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 17));
points.add(new Point1113(13, 15));
System.out.println(points);
}
public void demoHashSet() {
Set<Point1113> points = new HashSet<>();
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 31));
points.add(new Point1113(11, 15));
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 17));
points.add(new Point1113(13, 15));
System.out.println(points);
}
public void demoList() {
List<Point1113> points = new ArrayList<>();
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 31));
points.add(new Point1113(11, 15));
points.add(new Point1113(1, 2));
points.add(new Point1113(21, 17));
points.add(new Point1113(13, 15));
System.out.println(points.contains(new Point1113(11, 15)));
}
public static void main(String[] args) {
PointDemo1113 demo = new PointDemo1113();
demo.demoList();
demo.demoHashSet();
demo.demoTreeSet();
}
}

@ -0,0 +1,17 @@
// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`
// 然后按 Enter 键。现在,您可以在代码中看到空格字符。
public class Main {
public static void main(String[] args) {
// 当文本光标位于高亮显示的文本处时按 Alt+Enter
// 可查看 IntelliJ IDEA 对于如何修正该问题的建议。
System.out.printf("Hello and welcome!");
// 按 Shift+F10 或点击装订区域中的绿色箭头按钮以运行脚本。
for (int i = 1; i <= 5; i++) {
// 按 Shift+F9 开始调试代码。我们已为您设置了一个断点,
// 但您始终可以通过按 Ctrl+F8 添加更多断点。
System.out.println("i = " + i);
}
}
}

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

Binary file not shown.

@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

@ -0,0 +1,88 @@
211706724 吴熹
211904224 宋昊泽
211914127 林浩文
212003160 李志颍
212106263 钟欣桦
212106559 赵宇杰
212106610 方懋建
212106649 周元宣
212202243 尹杰
212202301 鲍金辉
212203152 陈周烨
212204263 李齐贤
212206201 蔡承霖
212206203 陈海翔
212206204 陈佳媛
212206212 陈子俊
212206213 邓泽玉
212206216 方琦
212206218 龚心怡
212206219 洪彬浩
212206223 贾旺勇
212206225 李杰
212206226 李文军
212206227 李文涛
212206228 梁晓峰
212206235 林延景
212206236 林志煌
212206237 刘灵峰
212206239 彭应文
212206243 汤宜默
212206244 王家彬
212206245 翁启凡
212206247 吴宇铉
212206248 先泽宇
212206249 谢伟
212206250 谢潇航
212206257 张俊林
212206260 赵本智
212206262 郑亿
212206264 朱昊
212206266 蔡军仁
212206268 陈朝阳
212206269 陈达坤
212206272 陈文熙
212206276 陈正琦
212206279 高晨纲
212206280 高晨涛
212206283 黄嘉铭
212206285 蒋蒸
212206288 李铭伟
212206289 李少钧
212206292 林秋荻
212206295 陆生荣
212206297 潘俊杰
212206298 潘淑君
212206300 宋鹏飞
212206304 王柄盛
212206307 王伟强
212206308 温静远
212206309 吴静怡
212206310 吴翔宇
212206313 杨鹏
212206315 姚翔
212206316 叶锋
212206318 叶浙波
212206321 詹旭航
212206322 张杰
212206324 张益宁
212206326 赵思嘉
212206327 郑鹏俊
212206328 郑诗鹏
212206329 朱佳辉
212206330 祝豪政
212206428 陆俊谕
212207131 谢子建
212208324 赖美娟
212208407 陈锴德
212211108 陈惠民
212211113 陈永锐
212211211 郭运盛
212211227 梁永杰
212211316 谢宇杰
212211319 杨靖
212214381 林聪
212214417 周俊杰
212217240 吴昊
212217253 于建潮
212218111 黄晓彤

@ -0,0 +1,316 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`\\unset -f command; \\command -v java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
if [ -n "$MVNW_REPOURL" ]; then
jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
else
jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
fi
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if $cygwin; then
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
fi
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl -o "$wrapperJarPath" "$jarUrl" -f
else
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaClass=`cygpath --path --windows "$javaClass"`
fi
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

@ -0,0 +1,188 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
cmd /C exit /B %ERROR_CODE%

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>SelectionWin1113</artifactId>
<version>1.0-SNAPSHOT</version>
<name>SelectionWin1113</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.9.2</junit.version> </properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>17.0.6</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>17.0.6</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<executions>
<execution>
<!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id>
<configuration>
<mainClass>com.example.selectionwin1113/com.example.selectionwin1113.HelloApplication</mainClass>
<launcher>app</launcher>
<jlinkZipName>app</jlinkZipName>
<jlinkImageName>app</jlinkImageName>
<noManPages>true</noManPages>
<stripDebug>true</stripDebug>
<noHeaderFiles>true</noHeaderFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,56 @@
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import java.util.Random;
import java.util.List;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.io.IOException;
public class RandomSelector extends Application {
@Override
public void start(Stage primaryStage) {
VBox root = new VBox(10); // 创建一个垂直布局的根节点
root.setAlignment(Pos.CENTER); // 设置根节点的对齐方式
// 创建并设置标签
Label label = new Label("自己的学号:姓名");
root.getChildren().add(label);
// 创建按钮并设置事件处理
Button btn = new Button("随机选人");
btn.setOnAction(e -> {
List<String> students = loadStudentList();
if (students != null && !students.isEmpty()) {
int index = new Random().nextInt(students.size());
String selectedStudent = students.get(index);
label.setText("恭喜 " + selectedStudent + " 被选中");
}
});
root.getChildren().add(btn);
Scene scene = new Scene(root, 300, 200); // 创建场景
primaryStage.setTitle("随机选人"); // 设置舞台标题
primaryStage.setScene(scene); // 设置舞台的场景
primaryStage.show(); // 显示舞台
}
private List<String> loadStudentList() {
try {
// 读取学生名单文件
return Files.readAllLines(Paths.get("data/StudentList.txt"));
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
public static void main(String[] args) {
launch(args); // 启动JavaFX应用程序
}
}

@ -0,0 +1,23 @@
package com.example.selectionwin1113;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class HelloApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
stage.setTitle("Hello!");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}

@ -0,0 +1,14 @@
package com.example.selectionwin1113;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
public class HelloController {
@FXML
private Label welcomeText;
@FXML
protected void onHelloButtonClick() {
welcomeText.setText("Welcome to JavaFX Application!");
}
}

@ -0,0 +1,8 @@
module com.example.selectionwin1113 {
requires javafx.controls;
requires javafx.fxml;
opens com.example.selectionwin1113 to javafx.fxml;
exports com.example.selectionwin1113;
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save