xerga hace 1 año
commit
05f05eb6c9
Se han modificado 100 ficheros con 3857 adiciones y 0 borrados
  1. 0 0
      01_JavaSe/1.txt
  2. 0 0
      01_JavaSe/JavaSe/.idea/.gitignore
  3. 6 0
      01_JavaSe/JavaSe/.idea/encodings.xml
  4. 6 0
      01_JavaSe/JavaSe/.idea/misc.xml
  5. 13 0
      01_JavaSe/JavaSe/.idea/modules.xml
  6. 124 0
      01_JavaSe/JavaSe/.idea/uiDesigner.xml
  7. 6 0
      01_JavaSe/JavaSe/.idea/vcs.xml
  8. 260 0
      01_JavaSe/JavaSe/.idea/workspace.xml
  9. 8 0
      01_JavaSe/JavaSe/JavaSe.iml
  10. 29 0
      01_JavaSe/JavaSe/day01/.gitignore
  11. 11 0
      01_JavaSe/JavaSe/day01/day01.iml
  12. 32 0
      01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo01.java
  13. 45 0
      01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo02.java
  14. 22 0
      01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo03.java
  15. 29 0
      01_JavaSe/JavaSe/day02/.gitignore
  16. 11 0
      01_JavaSe/JavaSe/day02/day02.iml
  17. 47 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo01.java
  18. 37 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo010.java
  19. 26 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011.java
  20. 25 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011_if2.java
  21. 59 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011_if3.java
  22. 35 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo012_BiJiao.java
  23. 49 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo013_LuoJi.java
  24. 36 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo014_SanYuan.java
  25. 47 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo015_Switch.java
  26. 32 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo016_Switch.java
  27. 25 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo02.java
  28. 41 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo03.java
  29. 39 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo04.java
  30. 28 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo05.java
  31. 52 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo06.java
  32. 65 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo07.java
  33. 37 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo08.java
  34. 37 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo09.java
  35. 48 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex01.java
  36. 44 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex02.java
  37. 22 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex03.java
  38. 25 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex04.java
  39. 35 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex05.java
  40. 28 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex06.java
  41. 63 0
      01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex07.java
  42. 29 0
      01_JavaSe/JavaSe/day03/.gitignore
  43. 11 0
      01_JavaSe/JavaSe/day03/day03.iml
  44. 28 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo01_For.java
  45. 50 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo02_Scanner.java
  46. 54 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo03_Math.java
  47. 45 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo04_While.java
  48. 37 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo05_DoWhile.java
  49. 35 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo06_DoWhile.java
  50. 28 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo07_ForD.java
  51. 63 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo08_ForFor.java
  52. 51 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo09_BC.java
  53. 83 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo09_素数.java
  54. 69 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerDoWhile07.java
  55. 37 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor01.java
  56. 31 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor02.java
  57. 55 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor03.java
  58. 68 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile04.java
  59. 45 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile05.java
  60. 38 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile06.java
  61. 60 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/Exer_Scanner.java
  62. 46 0
      01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/Exer_Scanner1.java
  63. 29 0
      01_JavaSe/JavaSe/day04/.gitignore
  64. 11 0
      01_JavaSe/JavaSe/day04/day04.iml
  65. 28 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr01.java
  66. 49 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr02.java
  67. 35 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr03.java
  68. 53 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr04.java
  69. 29 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr05.java
  70. 30 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr06.java
  71. 30 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr07.java
  72. 41 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr08.java
  73. 38 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr09.java
  74. 33 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr10.java
  75. 41 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr11.java
  76. 14 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/Test01.java
  77. 33 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer01.java
  78. 41 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer02.java
  79. 43 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer03.java
  80. 44 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer04.java
  81. 45 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer05.java
  82. 49 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer06.java
  83. 45 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer07.java
  84. 35 0
      01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer08.java
  85. 29 0
      01_JavaSe/JavaSe/day05/.gitignore
  86. 11 0
      01_JavaSe/JavaSe/day05/day05.iml
  87. 23 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/arr/Student.java
  88. 64 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/arr/TestStudent.java
  89. 16 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer1/Cat.java
  90. 32 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer1/TestCat.java
  91. 30 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer2/Person.java
  92. 27 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer2/TestPerson.java
  93. 19 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer3/Circle.java
  94. 23 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer3/TestCircle.java
  95. 62 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer4/TestMethod.java
  96. 28 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer5/StringTools.java
  97. 18 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer5/StringToolsTest.java
  98. 37 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/method1/DemoMethod01.java
  99. 64 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/method1/DemoMethod02.java
  100. 31 0
      01_JavaSe/JavaSe/day05/src/com/lc/day05/method2/Person.java

+ 0 - 0
01_JavaSe/1.txt


+ 0 - 0
01_JavaSe/JavaSe/.idea/.gitignore


+ 6 - 0
01_JavaSe/JavaSe/.idea/encodings.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
+    <file url="PROJECT" charset="UTF-8" />
+  </component>
+</project>

+ 6 - 0
01_JavaSe/JavaSe/.idea/misc.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>

+ 13 - 0
01_JavaSe/JavaSe/.idea/modules.xml

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

+ 124 - 0
01_JavaSe/JavaSe/.idea/uiDesigner.xml

@@ -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>

+ 6 - 0
01_JavaSe/JavaSe/.idea/vcs.xml

@@ -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>

+ 260 - 0
01_JavaSe/JavaSe/.idea/workspace.xml

@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="AutoImportSettings">
+    <option name="autoReloadType" value="SELECTIVE" />
+  </component>
+  <component name="ChangeListManager">
+    <list default="true" id="12140050-64bb-493c-b359-1ac1fbbf3cc2" name="Changes" comment="">
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr01.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr02.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr03.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr04.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr05.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr06.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArr07.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArrArr08.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArrArr09.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArrArr10.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/DemoArrArr11.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/Test01.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer01.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer02.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer03.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer04.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer05.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer06.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer07.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day04/src/com/lc/day04/exer/Exer08.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/arr/Student.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/arr/TestStudent.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer1/Cat.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer1/TestCat.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer2/Person.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer2/TestPerson.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer3/Circle.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer3/TestCircle.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer4/TestMethod.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer5/StringTools.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/exer/exer5/StringToolsTest.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/method1/DemoMethod01.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/method1/DemoMethod02.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/method2/Person.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/obj/DemoObject01.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/obj/DemoObject02.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/obj/Person.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/overload1/DemoOverloadMethod.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/overload1/DemoOverloadMethod1.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/overload1/DemoOverloadMethod2.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/param/Param1.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/param/Param2.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/param/Pserson.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/recursion/RecursionMethod.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/day05/src/com/lc/day05/recursion/RecursionMethod1.java" afterDir="false" />
+    </list>
+    <option name="SHOW_DIALOG" value="false" />
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+    <option name="LAST_RESOLUTION" value="IGNORE" />
+  </component>
+  <component name="CompilerWorkspaceConfiguration">
+    <option name="MAKE_PROJECT_ON_SAVE" value="true" />
+    <option name="PARALLEL_COMPILATION" value="true" />
+  </component>
+  <component name="FileTemplateManagerImpl">
+    <option name="RECENT_TEMPLATES">
+      <list>
+        <option value="Class" />
+      </list>
+    </option>
+  </component>
+  <component name="Git.Settings">
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
+  </component>
+  <component name="MavenImportPreferences">
+    <option name="generalSettings">
+      <MavenGeneralSettings>
+        <option name="mavenHome" value="$USER_HOME$/Xerga/apache-maven-3.8.1" />
+      </MavenGeneralSettings>
+    </option>
+  </component>
+  <component name="ProjectId" id="2SScBSD1SlwdDkWS5JFdUI4caCI" />
+  <component name="ProjectLevelVcsManager">
+    <ConfirmationsSetting value="2" id="Add" />
+  </component>
+  <component name="ProjectViewState">
+    <option name="hideEmptyMiddlePackages" value="true" />
+    <option name="showLibraryContents" value="true" />
+  </component>
+  <component name="PropertiesComponent">{
+  &quot;keyToString&quot;: {
+    &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
+    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
+    &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
+    &quot;jdk.selected.JAVA_MODULE&quot;: &quot;17&quot;,
+    &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
+    &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
+    &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
+    &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
+    &quot;project.structure.last.edited&quot;: &quot;SDKs&quot;,
+    &quot;project.structure.proportion&quot;: &quot;0.0&quot;,
+    &quot;project.structure.side.proportion&quot;: &quot;0.2908046&quot;,
+    &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
+    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
+  }
+}</component>
+  <component name="RecentsManager">
+    <key name="CopyClassDialog.RECENTS_KEY">
+      <recent name="com.lc.day05.recursion" />
+      <recent name="com.lc.day05.param" />
+      <recent name="com.lc.day05.exer.exer5" />
+      <recent name="com.lc.day05.overload1" />
+      <recent name="com.lc.day05.method1" />
+    </key>
+  </component>
+  <component name="RunManager" selected="Application.RecursionMethod1">
+    <configuration name="Param1" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
+      <option name="MAIN_CLASS_NAME" value="com.lc.day05.param.Param1" />
+      <module name="day05" />
+      <extension name="coverage">
+        <pattern>
+          <option name="PATTERN" value="com.lc.day05.param.*" />
+          <option name="ENABLED" value="true" />
+        </pattern>
+      </extension>
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+    <configuration name="Param2" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
+      <option name="MAIN_CLASS_NAME" value="com.lc.day05.param.Param2" />
+      <module name="day05" />
+      <extension name="coverage">
+        <pattern>
+          <option name="PATTERN" value="com.lc.day05.param.*" />
+          <option name="ENABLED" value="true" />
+        </pattern>
+      </extension>
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+    <configuration name="RecursionMethod" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
+      <option name="MAIN_CLASS_NAME" value="com.lc.day05.recursion.RecursionMethod" />
+      <module name="day05" />
+      <extension name="coverage">
+        <pattern>
+          <option name="PATTERN" value="com.lc.day05.recursion.*" />
+          <option name="ENABLED" value="true" />
+        </pattern>
+      </extension>
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+    <configuration name="RecursionMethod1" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
+      <option name="MAIN_CLASS_NAME" value="com.lc.day05.recursion.RecursionMethod1" />
+      <module name="day05" />
+      <extension name="coverage">
+        <pattern>
+          <option name="PATTERN" value="com.lc.day05.recursion.*" />
+          <option name="ENABLED" value="true" />
+        </pattern>
+      </extension>
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+    <configuration name="StringToolsTest" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
+      <option name="MAIN_CLASS_NAME" value="com.lc.day05.exer.exer5.StringToolsTest" />
+      <module name="day05" />
+      <extension name="coverage">
+        <pattern>
+          <option name="PATTERN" value="com.lc.day05.exer.exer5.*" />
+          <option name="ENABLED" value="true" />
+        </pattern>
+      </extension>
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+    <recent_temporary>
+      <list>
+        <item itemvalue="Application.RecursionMethod1" />
+        <item itemvalue="Application.RecursionMethod" />
+        <item itemvalue="Application.Param2" />
+        <item itemvalue="Application.Param1" />
+        <item itemvalue="Application.StringToolsTest" />
+      </list>
+    </recent_temporary>
+  </component>
+  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
+  <component name="TaskManager">
+    <task active="true" id="Default" summary="Default task">
+      <changelist id="12140050-64bb-493c-b359-1ac1fbbf3cc2" name="Changes" comment="" />
+      <created>1689143288660</created>
+      <option name="number" value="Default" />
+      <option name="presentableId" value="Default" />
+      <updated>1689143288660</updated>
+      <workItem from="1689143289687" duration="5805000" />
+      <workItem from="1689211079534" duration="19362000" />
+      <workItem from="1689384878613" duration="14576000" />
+      <workItem from="1689468088880" duration="17301000" />
+      <workItem from="1689643884392" duration="16542000" />
+      <workItem from="1689672101731" duration="69000" />
+    </task>
+    <servers />
+  </component>
+  <component name="TypeScriptGeneratedFilesManager">
+    <option name="version" value="3" />
+  </component>
+  <component name="XDebuggerManager">
+    <breakpoint-manager>
+      <breakpoints>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day02/src/com/lc/day02/Demo010.java</url>
+          <line>16</line>
+          <option name="timeStamp" value="2" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day02/src/com/lc/day02/Demo010.java</url>
+          <line>28</line>
+          <option name="timeStamp" value="3" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day02/src/com/lc/day02/Demo011_if2.java</url>
+          <line>18</line>
+          <option name="timeStamp" value="4" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day03/src/com/lc/day03/Demo01_For.java</url>
+          <line>20</line>
+          <option name="timeStamp" value="5" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day03/src/com/lc/day03/exer/Exer_Scanner1.java</url>
+          <line>45</line>
+          <option name="timeStamp" value="6" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day03/src/com/lc/day03/exer/ExerWhile04.java</url>
+          <line>33</line>
+          <option name="timeStamp" value="7" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day04/src/com/lc/day04/DemoArrArr10.java</url>
+          <line>25</line>
+          <option name="timeStamp" value="12" />
+        </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/day05/src/com/lc/day05/method2/Person.java</url>
+          <line>23</line>
+          <option name="timeStamp" value="13" />
+        </line-breakpoint>
+      </breakpoints>
+    </breakpoint-manager>
+  </component>
+  <component name="XSLT-Support.FileAssociations.UIState">
+    <expand />
+    <select />
+  </component>
+</project>

+ 8 - 0
01_JavaSe/JavaSe/JavaSe.iml

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

+ 29 - 0
01_JavaSe/JavaSe/day01/.gitignore

@@ -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

+ 11 - 0
01_JavaSe/JavaSe/day01/day01.iml

@@ -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="jdk" jdkName="17" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 32 - 0
01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo01.java

@@ -0,0 +1,32 @@
+package com.lc.day01;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day01
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/12 15:30
+ * @Version 1.0
+ */
+public class Demo01 {
+    public static void main(String[] args) {
+        //字面量
+        System.out.println("hello world"); //字符串  引用数据类型
+
+        System.out.println(1000); //数字 整数
+        System.out.println(100);
+
+        //CTRL + D 复制一行
+        System.out.println(100.111); //数字 小数
+
+
+        System.out.println('中'); //字符  必须 '' 单引号包裹 一个字符
+
+        System.out.println(true); //布尔值
+        System.out.println(false);
+
+        //值 不会改变
+    }
+
+}

+ 45 - 0
01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo02.java

@@ -0,0 +1,45 @@
+package com.lc.day01;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day01
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/12 15:30
+ * @Version 1.0
+ */
+public class Demo02 {
+    public static void main(String[] args) {
+        //变量
+        byte b1 = 127 ; // byte 127  声明时 已经说明  内存大小
+
+        //用变量 描述个人信息
+        String name = "cc";
+
+        int age = 20;
+        //double height = 178.5; // 默认 可以 加 D
+        float height = 178.5F;    // 加F
+
+        long length = 12345678010L; // 默认 int  long 加 L
+
+        boolean marry = true;
+
+        char flag = '好';
+
+        System.out.println("姓名:"+name);
+        System.out.println("年龄:"+age);
+        System.out.println("身高:"+height);
+        System.out.println("老家距离:"+length);
+        System.out.println("婚姻:"+marry);
+        System.out.println("状态:"+flag);
+
+        //特点:不赋值 不能使用
+        //声明  int  a , b;
+        //范围
+
+
+    }
+
+
+}

+ 22 - 0
01_JavaSe/JavaSe/day01/src/com/lc/day01/Demo03.java

@@ -0,0 +1,22 @@
+package com.lc.day01;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day01
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/12 15:30
+ * @Version 1.0
+ */
+public class Demo03 {
+    public static void main(String[] args) {
+        //int  0 ;
+        //int  a b ;
+
+
+
+    }
+
+
+}

+ 29 - 0
01_JavaSe/JavaSe/day02/.gitignore

@@ -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

+ 11 - 0
01_JavaSe/JavaSe/day02/day02.iml

@@ -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="jdk" jdkName="17" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 47 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo01.java

@@ -0,0 +1,47 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo01 {
+    //算术运算符
+    public static void main(String[] args) {
+        //+
+        System.out.println(1+2);
+        int a = 10;
+        int b = 20;
+
+        System.out.println(a + b);
+
+        //-
+        System.out.println(11-1);
+        int c = 20;
+        int d = 10;
+        System.out.println(d-c);
+
+        //*
+        byte e = 10;
+
+        System.out.println(d * e); // 类型提升
+
+        // /
+        System.out.println(10 / 3);  // 结果 ?3 java 除法 整除
+
+        // %
+        System.out.println(10 % 3);  //结果 ? 1
+        System.out.println(-10 % 3); //结果 ? -1
+        System.out.println(10 % -3); //结果 ? 1
+        System.out.println(-10 % -3); //结果 ? -1
+
+        //被 模数
+
+
+
+    }
+}

+ 37 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo010.java

@@ -0,0 +1,37 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo010 {
+    public static void main(String[] args) {
+        // 你有几种办法实现变量值减1?变量值减2呢?
+        // 三种
+
+        int a = 10;
+
+        //-1
+        a = a -1;
+        System.out.println(a);
+
+        //--
+        a = (--a);
+        System.out.println(a);
+
+        //-=
+        a -=1;
+        System.out.println(a);
+
+        //-2
+
+        //-=
+        //-2
+
+    }
+}

+ 26 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011.java

@@ -0,0 +1,26 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo011 {
+    public static void main(String[] args) {
+        //true
+        boolean isGreen = true;
+
+        isGreen = false;
+
+        //判断 魏国true
+        if (isGreen){
+            //执行
+            System.out.println("绿灯请通行");
+        }
+
+    }
+}

+ 25 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011_if2.java

@@ -0,0 +1,25 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo011_if2 {
+    public static void main(String[] args) {
+        //if 2
+
+        boolean isGreen = true;
+        isGreen = false;
+
+        if (isGreen){
+            System.out.println("绿灯请通行");
+        }else{
+            System.out.println("红灯请停止");
+        }
+    }
+}

+ 59 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo011_if3.java

@@ -0,0 +1,59 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo011_if3 {
+    public static void main(String[] args) {
+        //if 3
+        int flag = 0; //绿灯 0  红灯 1 黄灯 2
+
+        //判断
+        if ( flag == 0 ){
+            System.out.println("绿灯请通行");
+        } else if ( flag == 1) {
+            System.out.println("红灯请停止");
+        } else if ( flag == 2 ){
+            System.out.println("黄灯请注意");
+        }
+
+        //三个条件
+        boolean isGreen = true;
+        boolean isRed = true;
+        boolean isYellow = true;
+
+        if (isGreen){
+            System.out.println("绿灯请通行");
+        }else if (isRed){
+            System.out.println("红灯请停止");
+        } else if (isYellow) {
+            System.out.println("黄灯请注意");
+        }
+
+        //if
+        //注意
+        /*
+        * 1. 推荐不省略  {} 可以省略
+        * 2. {} 没有  会把  if else 后面的第一条语句当作执行体
+        *
+        */
+
+        int s = 59;
+
+        if (s >= 60)
+            System.out.println("及格");
+        else
+            System.out.println("不及格");
+
+        //不推荐
+
+
+
+    }
+}

+ 35 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo012_BiJiao.java

@@ -0,0 +1,35 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo012_BiJiao {
+    public static void main(String[] args) {
+        //比较运算符
+
+        System.out.println(1==1); //t
+        System.out.println(1>=1); //t
+        System.out.println(1<=1); //t
+        System.out.println(1>1);  //f
+        System.out.println(1<1);  //f
+        System.out.println(1!=1); //f
+
+
+        boolean b = true;
+        //如果写成if(b=false)能编译通过吗?如果能,结果是?
+        if(!b) 	 //建议:if(!b) 逻辑运算符再回来
+            System.out.println("a");
+        else if(b)
+            System.out.println("b");
+        else if(!b) //felse !false = true
+            System.out.println("c");
+        else
+            System.out.println("d");
+    }
+}

+ 49 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo013_LuoJi.java

@@ -0,0 +1,49 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo013_LuoJi {
+    public static void main(String[] args) {
+        // & 并且 要求所有的 都为 true  才返回True
+        System.out.println(1==1 & 1!=2); //t & t  t
+        System.out.println(1==1 && 1!=2);
+
+        // | 或者 有一个True 直接返回true
+        System.out.println(1==1 | 1!=2);
+        System.out.println(1==1 || 1!=2);
+
+        // ! 取反
+        System.out.println(!true);
+
+
+        // && ||
+        // && 短路
+
+        int a = 10;
+        //& 没有短路 连个条件件表达式都会执行
+        //System.out.println( a == 11 & a++ == 10 );
+        //&& 前面有Flase 后面省略
+        //System.out.println( a == 11 && a++ == 10 );
+        //System.out.println(a);
+
+        // ||
+        //System.out.println( a == 10 || a++ == 10 );
+        //System.out.println(a);
+        System.out.println( a == 10 | a++ == 10 );
+        System.out.println(a);
+
+
+        //亦或  一个t 一个f 返回t
+        System.out.println( 7 == 7 ^ 7!= 7 );
+        System.out.println( 7 == 7 ^ 7 == 7 );
+
+
+    }
+}

+ 36 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo014_SanYuan.java

@@ -0,0 +1,36 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo014_SanYuan {
+    public static void main(String[] args) {
+        //两个数字  输出 比较大的数字的值。
+        int a =50;
+        int b =30;
+
+        int result  = a > b ? a : b;
+
+        System.out.println(result);
+
+
+        //获取三个数中的最大值
+        int a1 = 50;
+        int a2 = 60;
+        int a3 = 70;
+
+        int max = a1 > a2 ? a1 : a2;
+        int mmax = max > a3 ? max : a3;
+        System.out.println(mmax);
+
+        //嵌套
+        int m = (a1 > a2 ? a1 : a2) > a3 ? (a1 > a2 ? a1 : a2) : a3;
+        System.out.println(m);
+    }
+}

+ 47 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo015_Switch.java

@@ -0,0 +1,47 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo015_Switch {
+    public static void main(String[] args) {
+        //根据 1-7 输出 星期1 -7
+
+        int week = 8;
+
+        switch (week){
+            case 1:
+                System.out.println("星期一");
+                break;
+            case 2:
+                System.out.println("星期二");
+                break;
+            case 3:
+                System.out.println("星期三");
+                break;
+            case 4:
+                System.out.println("星期四");
+                break;
+            case 5:
+                System.out.println("星期五");
+                break;
+            case 6:
+                System.out.println("星期六");
+                break;
+            case 7:
+                System.out.println("星期日");
+                break;
+            default:
+                System.out.println("没有这一天");
+
+        }
+
+
+    }
+}

+ 32 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo016_Switch.java

@@ -0,0 +1,32 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo016_Switch {
+    public static void main(String[] args) {
+        //根据 1-7 输出 星期1 -7
+
+        //String int byte short char enum
+        char week = '1';
+
+        switch (week){
+
+            case '1':
+                System.out.println("星期一");
+
+            default:
+                System.out.println("没有这一天");
+                break;
+
+        }
+
+
+    }
+}

+ 25 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo02.java

@@ -0,0 +1,25 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo02 {
+    public static void main(String[] args) {
+        int a = 153;
+
+        int g = a % 10 ;
+        int s = a / 10 % 10;
+        int b = a / 100;
+
+        System.out.println("个位:"+g);
+        System.out.println("十位:"+s);
+        System.out.println("百位:"+b);
+
+    }
+}

+ 41 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo03.java

@@ -0,0 +1,41 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo03 {
+    public static void main(String[] args) {
+        // + 隐式转换
+
+        //不用 +
+        byte a = 10;
+
+        //自动类型提示
+        int b = a; //
+
+        // +
+        int c = 20;
+        byte d = 30;
+
+        //隐式转换
+        int e = c + d;
+
+        //特点
+        byte a1 = 10;
+        byte a2 = 10;
+
+        // a1 + a2  ?
+        int a3 = a1 + a2;
+
+        // char  short byte 三者不能 加减
+        // 需要把返回值 类型 变为 int
+
+
+    }
+}

+ 39 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo04.java

@@ -0,0 +1,39 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo04 {
+    public static void main(String[] args) {
+        // 强制转换
+
+        //不用 +
+        int a = 128;
+        byte b = (byte) a; //127
+
+        //128 来源
+        // 0000 0000 1000 0000   int
+        //           1000 0000   byte  第一位 符号位  = -128
+
+
+
+        System.out.println(b); // ? 损失精度
+
+        // +
+        double d = 20.0;
+        int c = 100;
+
+        //double int  需要 返回 double 或者强制
+        int e =  (int) (d + c); //没有损失精度  类型变了
+        System.out.println(e);
+
+
+
+    }
+}

+ 28 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo05.java

@@ -0,0 +1,28 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo05 {
+    public static void main(String[] args) {
+        // + 和 字符
+        // int ? int + char  返回 int
+        System.out.println('A'+0); //结果 ? 65
+        System.out.println('a'+0); //结果 ? 97
+
+        //编码表
+        //a = 97
+
+        //asi iso-8891 gbk  utf-8 编码
+
+        System.out.println('中'+0); // 以 int 输出
+        System.out.println((char)20013  ); // 以 强制 char 输出
+
+    }
+}

+ 52 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo06.java

@@ -0,0 +1,52 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo06 {
+    public static void main(String[] args) {
+        // + 和 字符串
+
+        //数字 和  直接字符串
+        // a = 10
+        // a + "123" + 10,
+        int a = 10;
+        System.out.println(a + "123"+ 1+ 2+ 3); //? 10123123
+        //10 + "123"
+        System.out.println(1+ 2 + 3 + "123" + 1+ 2+ 3); //? 6123123
+
+        System.out.println(1+ 2 + 3 + "123" + 1* 2* 3); //? 61236
+
+
+        //特点
+        //直接 + 字符串 变为字符串 10123  数字 和 字符串 + 结果字符
+        //间接   先加法 6 +"123+ 123 = 6123123
+        //优先级 * 优先级 大于  + 优先级
+
+
+        String str1 = "4";                       //判断对错:
+        String str2 = 3.5f + "";               //判断str2对错:
+        System.out.println(str2);              //输出:
+        System.out .println(3+4+"Hello!");     //输出:
+        System.out.println("Hello!"+3+4);      //输出:
+        System.out.println('a'+1+"Hello!");    //输出:
+        System.out.println("Hello"+'a'+1);     //输出:
+
+
+        System.out.println("*    *");				//输出:
+        System.out.println("*\t*");					//输出:
+        System.out.println("*" + "\t" + "*");		//输出:
+        System.out.println('*' + "\t" + "*");		//输出:
+        System.out.println('*' + '\t' + "*");		//输出:
+        System.out.println('*' + "\t" + '*');		//输出:
+        System.out.println("*" + '\t' + '*');		//输出:
+        System.out.println('*' + '\t' + '*');		//输出:
+
+    }
+}

+ 65 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo07.java

@@ -0,0 +1,65 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo07 {
+    public static void main(String[] args) {
+        // ++  自加自减
+
+        int a = 10;
+
+        a++;
+
+        int b = 20;
+
+        ++b;
+
+        System.out.println(a);
+        System.out.println(b);
+
+
+        //运算
+
+        int a1 = 10;
+
+        //int a2 = a1++ + 10;
+        int a3 = ++a1 + 10;
+
+        System.out.println(a3);
+
+        //总结
+        // 单独一行 +1 不去区分 前后
+        // 前  先自身 + 1 参与运算
+        // 后  先参与运算  后自身+1
+
+
+
+        int i1 = 10;
+        int i2 = 20;
+        int i = i1++;
+        // i = 10
+        System.out.print("i="+i); //  10
+        System.out.println("i1="+i1);// 11
+        i = ++i1;
+        // i = 12
+        System.out.print("i="+i);// 12
+        System.out.println("i1="+i1);// 12
+        i = i2--;
+        // i = 20
+        System.out.print("i="+i);// 20
+        System.out.println("i2="+i2);// 19
+        i = --i2;
+        //i = 18
+        System.out.print("i="+i);// 18
+        System.out.println("i2="+i2);// 18
+
+
+    }
+}

+ 37 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo08.java

@@ -0,0 +1,37 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo08 {
+    public static void main(String[] args) {
+        // 赋值运算符
+        // += 运算符
+
+        //溢出问题  没有
+        int a = 10;
+        a += 20;
+        // a = a + 20;
+
+        System.out.println(a);
+
+        //溢出问题  有
+        byte b = 10;
+        b+= 120; //原理 b = (byte) (b + 120)  有溢出 强转
+
+        System.out.println(b);
+
+        //类型问题
+        short s = 2;
+        //s = s + 2  //不能操作 2 默认int  需要提升
+        s += 2;   //没问题 强转
+        //结果??
+
+    }
+}

+ 37 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Demo09.java

@@ -0,0 +1,37 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Demo09 {
+    public static void main(String[] args) {
+        // 你有几种办法实现变量值减1?变量值减2呢?
+        // 三种
+
+        int a = 10;
+
+        //-1
+        a = a -1;
+        System.out.println(a);
+
+        //--
+        a = (--a);
+        System.out.println(a);
+
+        //-=
+        a -=1;
+        System.out.println(a);
+
+        //-2
+
+        //-=
+        //-2
+
+    }
+}

+ 48 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex01.java

@@ -0,0 +1,48 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex01 {
+    public static void main(String[] args) {
+        //定义两个整数,分别为small 和 big,如果第一个整数small大于第二个整数big,
+        // 就交换。输出显示small和big变量的值。
+
+        int small = 80;
+        int big = 70;
+
+        if ( small > big){
+            int temp = small;
+            small = big;
+            big = temp;
+        }
+
+        System.out.println("small:"+small);
+        System.out.println("big:"+big);
+
+
+        //思考
+
+        // 两个值的交换
+        int a = 10;
+        int b = 20;
+
+        System.out.println("a:"+a);
+        System.out.println("b:"+b);
+
+        //交换
+        int temp = a;
+            a = b;
+            b = temp;
+        System.out.println("交换之后");
+
+        System.out.println("a:"+a);
+        System.out.println("b:"+b);
+    }
+}

+ 44 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex02.java

@@ -0,0 +1,44 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex02 {
+    public static void main(String[] args) {
+        /*
+        小明参加期末Java考试,通过考试成绩,判断其Java等级,成绩范围[0,100]
+        提示(条件链接  &&  与 并且  ) 考虑健壮性
+        - 90-100      优秀
+        - 80-89        良好
+        - 70-79        中等
+        - 60-69        及格
+        - 60以下    不及格
+         */
+
+        // if else if
+        int s = 80;
+
+        if ( s >= 0 && s <= 100 ){ // 90 > s > 80  用  &&
+            //判断
+            if ( s >= 90 ){
+                System.out.println("优秀");
+            }else if (s >= 80){
+                System.out.println("良好");
+            }else if (s >= 70){
+                System.out.println("中等");
+            }else if (s >= 60){
+                System.out.println("及格");
+            }else{
+                System.out.println("不及格");
+            }
+        }else {
+            System.out.println("分数不符合");
+        }
+    }
+}

+ 22 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex03.java

@@ -0,0 +1,22 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex03 {
+    //编写程序,声明2个int型变量并赋值。判断两数之和,如果大于等于50,打印“hello world!”
+    public static void main(String[] args) {
+        int a = 20;
+        int b = 30;
+
+        if ( ( a+b ) >= 50 ){
+            System.out.println("hello world!");
+        }
+    }
+}

+ 25 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex04.java

@@ -0,0 +1,25 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex04 {
+    //编写程序,声明2个double型变量并赋值。
+    // 判断第一个数大于10.0,且第2个数小于20.0,打印两数之和。否则,打印两数的乘积。
+    public static void main(String[] args) {
+        double a = 20;
+        double b = 30;
+
+        if (a > 10.0 &&  b < 20.0 ){
+            System.out.println(a+b);
+        }else{
+            System.out.println(a*b);
+        }
+    }
+}

+ 35 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex05.java

@@ -0,0 +1,35 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex05 {
+    /*
+    1. 定义类 Test
+    2. 定义 main方法
+    3. 定义一个int类型变量a,变量b,都赋值为20
+    4. 定义boolean类型变量bo1 , 判断++a 是否被3整除,并且a++ 是否被7整除,将结果赋值给bo1
+    5. 输出a的值,bo1的值
+    6. 定义boolean类型变量bo2 , 判断b++ 是否被3整除,并且++b 是否被7整除,将结果赋值给bo2
+    7. 输出b的值,bo2的值
+     */
+    public static void main(String[] args) {
+        int a =20;
+        int b =20;
+        boolean bo1;
+        bo1 = ++a % 3 == 0 && a++ % 7 ==0 ;// && 两个条件
+        System.out.println(a);
+        System.out.println(bo1);
+        //Ctrl + shirt + 上下
+        boolean bo2;
+        bo2 = b++ % 3 == 0 && ++b % 7 ==0 ;
+        System.out.println(b);
+        System.out.println(bo2);
+    }
+}

+ 28 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex06.java

@@ -0,0 +1,28 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Demo01
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 9:18
+ * @Version 1.0
+ */
+public class Ex06 {
+
+    public static void main(String[] args) {
+        //使用switch-case实现:对学生成绩大于60分的,输出“合格”。低于60分的,输出“不合格”。
+
+        int s = 80;
+
+        switch (s / 60){
+            case 0:
+                System.out.println("不合格");
+                break;
+            case 1:
+                System.out.println("合格");
+                break;
+        }
+    }
+}

+ 63 - 0
01_JavaSe/JavaSe/day02/src/com/lc/day02/Ex07.java

@@ -0,0 +1,63 @@
+package com.lc.day02;
+
+/**
+ * ClassName: Ex07
+ * Package: com.lc.day02
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/13 17:11
+ * @Version 1.0
+ */
+public class Ex07 {
+
+    /*、
+    声明分别输入年、月、日,判断这一天是当年的第几天
+    注:判断一年是否是闰年的标准:
+       1)可以被4整除,但不可被100整除
+          或
+       2)可以被400整除
+
+    例如:1900,2200等能被4整除,但同时能被100整除,但不能被400整除,不是闰年
+     */
+    public static void main(String[] args) {
+        int year = 2023;
+        int m = 7;
+        int day = 13;
+        // 1 31 2 28 3 31
+        // m = 7 思考  6 + 5 + 4 + 3 + 2 + 1; 30 + 31 + 30 + 31 + 28 + 31 + 13 = 60+93+28+13= 153+41=194;
+        int days = 0; //定义和
+        switch (m){
+            case 12:
+                days +=30;  //利用case 穿透
+            case 11:
+                days +=31;
+            case 10:
+                days +=30;
+            case 9:
+                days +=31;
+            case 8:
+                days +=31;
+            case 7:
+                days +=30;
+            case 6:
+                days +=31;
+            case 5:
+                days +=30;
+            case 4:
+                days +=31;
+            case 3:
+                days +=28;
+                if (year % 4 == 0 && year %100 !=0 || year % 400 ==0 ){
+                    days++;
+                }
+            case 2:
+                days +=31;
+            case 1:
+                days +=day; //当月天数
+        }
+
+        System.out.println(year+":年 " +m +"月"+ day+ "天是 "+year +"年的第"+days);
+
+    }
+}

+ 29 - 0
01_JavaSe/JavaSe/day03/.gitignore

@@ -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

+ 11 - 0
01_JavaSe/JavaSe/day03/day03.iml

@@ -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="jdk" jdkName="17" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 28 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo01_For.java

@@ -0,0 +1,28 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo01_For {
+
+    // 输出 5行 hello world
+    // 标注 第几行
+
+    // i 变化
+    public static void main(String[] args) {
+        // 从 0 开始
+        for (
+                int i = 0;
+              i < 5  ;
+              i++){
+            System.out.println( "第"+(i+1)+ "行 hello world");
+        }
+    }
+
+}

+ 50 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo02_Scanner.java

@@ -0,0 +1,50 @@
+package com.lc.day03;
+
+import java.util.Scanner;
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo02_Scanner {
+
+    // 获取键盘输入对象
+    // 使用 Scanner
+    public static void main(String[] args) {
+        //声明类型
+        Scanner scanner = new Scanner(System.in);
+
+        System.out.println("输入名称");
+        //方法
+        String name = scanner.next();
+        //输出
+        System.out.println(name);
+
+        System.out.println("输入性别");
+        //char
+        char sex = scanner.next().charAt(0);
+        System.out.println(sex);
+
+        System.out.println("是否单身");
+        //boolean
+        boolean isDs = scanner.nextBoolean();
+        System.out.println(isDs);
+
+        System.out.println("身高");
+        //boolean
+        double height = scanner.nextDouble();
+        System.out.println(height);
+
+        System.out.println("年龄");
+        //boolean
+        double age = scanner.nextInt();
+        System.out.println(age);
+
+        scanner.close();
+    }
+
+}

+ 54 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo03_Math.java

@@ -0,0 +1,54 @@
+package com.lc.day03;
+
+import java.util.Random;
+import java.util.Scanner;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo03_Math {
+
+    //随机数
+    public static void main(String[] args) {
+        //Random
+        Random random = new Random();
+        //调用方法
+        //随机数  伪随机数
+        int i = random.nextInt();
+        System.out.println(i);
+
+        //参数 10
+        // (0 - 10]  0-9
+        int i1 = random.nextInt(10);
+        System.out.println(i1);
+
+        //练习
+        // 50 -100
+        // 0-50 + 50
+        int i2 = random.nextInt(50)+50;
+        System.out.println(i2);
+
+        System.out.println("--------------------");
+        // Math 静态的 不许创建对象
+
+        //random()  0 - 0.999999999
+        double random1 = Math.random();
+        System.out.println(random1);
+
+        //10 内 随机数
+        int random2 = (int) (Math.random()*10);
+        System.out.println(random2);
+
+        // 50-70; a b
+        int random3 = (int) (Math.random()*20)+50;
+        System.out.println(random3);
+
+    }
+
+}

+ 45 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo04_While.java

@@ -0,0 +1,45 @@
+package com.lc.day03;
+
+import java.util.Random;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo04_While {
+
+
+    public static void main(String[] args) {
+        //while
+        //输出5行HelloWorld!
+        //初始化
+        int i = 1;
+        //条件判断
+        while ( i <= 5){
+            //输出
+            System.out.println("HelloWorld!");
+            //迭代
+            i++;
+        }
+
+        //初始化值的作用域
+        System.out.println(i);
+
+
+        for (int j = 0; j < 5 ; j++) {
+            System.out.println("HelloWorld!");
+        }
+
+        //for 在外面不能使用初始化变量
+        //System.out.println(j);
+
+        //可以相互转换
+
+    }
+
+}

+ 37 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo05_DoWhile.java

@@ -0,0 +1,37 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo05_DoWhile {
+
+    public static void main(String[] args) {
+        //dowhile
+
+        int i = 1;
+        //计数 求和
+        int count = 0;
+        int sum = 0;
+
+        do {
+            //偶数
+            if (i % 2 == 0){
+                count++;
+
+                sum += i;
+            }
+            //迭代
+            i++;
+        }while ( i <= 100);
+
+        System.out.println("和:"+sum);
+        System.out.println("计数:"+count);
+    }
+
+}

+ 35 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo06_DoWhile.java

@@ -0,0 +1,35 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo06_DoWhile {
+
+    public static void main(String[] args) {
+        //dowhile
+        //boolean flag = false;
+
+        int i = 1;
+
+        while ( i <= 5 ){
+            System.out.println("hello");
+            i++;
+        }
+
+        //do while 至少执行一次
+        int j = 1;
+        do {
+            System.out.println("world");
+            j++;
+        }while (j<=5);
+
+
+    }
+
+}

+ 28 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo07_ForD.java

@@ -0,0 +1,28 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo07_ForD {
+
+    public static void main(String[] args) {
+//        for (;;){
+//            System.out.println("123");
+//        }
+        //sout(123) ?
+        //System.out.println("123"); //原因?
+
+        boolean flag = true;
+        while(flag);
+        {
+            System.out.println("123");
+        }
+    }
+
+}

+ 63 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo08_ForFor.java

@@ -0,0 +1,63 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo08_ForFor {
+
+    public static void main(String[] args) {
+        //2维
+//        for (int i = 0; i < 10; i++) {
+//            System.out.print("*");
+//        }
+//        System.out.println();
+//        for (int i = 0; i < 10; i++) {
+//            System.out.print("*");
+//        }
+//        System.out.println();
+//        for (int i = 0; i < 10; i++) {
+//            System.out.print("*");
+//        }
+//        System.out.println();
+//        for (int i = 0; i < 10; i++) {
+//            System.out.print("*");
+//        }
+//
+//        for (int i = 0; i < 10; i++) {
+//            System.out.print("*");
+//        }
+
+        for (int i = 0; i < 5 ; i++) {
+            for (int j = 0; j < 5; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+
+        System.out.println();
+
+        for (int i = 0; i < 5 ; i++) {
+            for (int j = 0; j < 5-i; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+
+        System.out.println();
+        for (int i = 0; i < 5 ; i++) {
+            for (int j = 0; j < i+1; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+
+
+    }
+
+}

+ 51 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo09_BC.java

@@ -0,0 +1,51 @@
+package com.lc.day03;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo09_BC {
+
+    public static void main(String[] args) {
+
+//        int num = 78;
+//        while (true){
+//            int i = new Scanner(System.in).nextInt();
+//
+//            if (i > num){
+//                System.out.println("大了");
+//            }
+//            if (i < num){
+//                System.out.println("大了");
+//            }
+//            if ( i == num){
+//                System.out.println("猜对了");
+//                break; //结束循环
+//            }
+//        }
+
+        //break
+//        for (int i = 0; i < 10 ; i++) {
+//            if (i == 5){
+//                break;
+//            }
+//            System.out.println(i);
+//        }
+
+        for (int i = 0; i < 10 ; i++) {
+            if (i == 5){
+                continue;
+            }
+            System.out.println(i);
+        }
+
+    }
+
+}

+ 83 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/Demo09_素数.java

@@ -0,0 +1,83 @@
+package com.lc.day03;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Demo09_素数 {
+
+    public static void main(String[] args) {
+        /*
+        目的:不同的代码的实现方式,可以效率差别很大。
+
+        分析:素数(质数):只能被1和它本身整除的自然数。  ---> 从2开始,到这个数-1为止,此范围内没有这个数的约数。则此数是一个质数。
+        比如:2、3、5、7、11、13、17、19、23、...
+         */
+
+        //标识
+//        long l = System.currentTimeMillis();
+//        int flag = 1;
+//        //循环 i 是否是素数
+//        for (int i = 1 ; i < 100000 ; i++) {
+//            //判断 的值
+//            for (int j = 2; j < i; j++) {
+//                if ( i % j == 0 ){
+//                    flag = 0;
+//                }
+//            }
+//            if (flag == 1){
+//                //System.out.println("素数:"+i);
+//            }
+//            flag = 1;
+//        }
+//        long l1 = System.currentTimeMillis();
+//        System.out.println(l1-l);
+
+
+
+//        //循环 i 是否是素数
+//        for (int i = 1 ; i < 1000 ; i++) {
+//            //标识
+//            int flag = 1;
+//            //判断 的值
+//            for (int j = 2; j < i; j++) {
+//                if ( i % j == 0 ){
+//                    flag = 0;
+//                }
+//            }
+//            if (flag == 1){
+//                System.out.println("素数:"+i);
+//            }
+//        }
+
+
+        //循环 i 是否是素数
+//        System.out.println("开始");
+
+        long start = System.currentTimeMillis();
+        for (int i = 1 ; i < 100000 ; i++) {
+            //标识
+            int flag = 1;
+            //判断 的值
+            //for (int j = 2; j < i; j++) {
+            //优化1
+            for (int j = 2; j < Math.sqrt(i); j++) {
+                if ( i % j == 0 ){
+                    flag = 0;
+                    break; //优化2
+                }
+            }
+            if (flag == 1){
+                //System.out.println("素数:"+i);
+            }
+        }
+        long end = System.currentTimeMillis();
+        System.out.println(end-start);
+    }
+
+}

+ 69 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerDoWhile07.java

@@ -0,0 +1,69 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerDoWhile07 {
+    public static void main(String[] args) {
+        /*
+        =========ATM========
+           1、存款
+           2、取款
+           3、显示余额
+           4、退出
+        请选择(1-4):
+         */
+        //标识
+        boolean flag = true;
+        //余额
+        double banance = 1000;
+        //键盘输入
+        Scanner scanner = new Scanner(System.in);
+        do {
+            System.out.println("=========ATM========");
+            System.out.println("1、存款");
+            System.out.println("2、取款");
+            System.out.println("3、显示余额");
+            System.out.println("4、退出");
+            System.out.println("请选择");
+            //选择
+            int n = scanner.nextInt();
+
+            switch (n){
+                case 1:
+                    System.out.println("请输入存款金额");
+                    double v = scanner.nextDouble();
+                    banance+=v;
+                    break;
+                case 2:
+                    System.out.println("请输入取款金额");
+                    double v1 = scanner.nextDouble();
+                    if (v1 > banance){
+                        System.out.println("余额不足");
+                    }else {
+                        banance -=v1;
+                    }
+                    break;
+                case 3:
+                    System.out.println("金额:"+banance);
+                    break;
+                case 4:
+                    flag = false;
+                    break;
+                default:
+                    System.out.println("操作有误重新输入");
+                    break;
+            }
+        }while (flag);
+
+        scanner.close();
+    }
+}

+ 37 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor01.java

@@ -0,0 +1,37 @@
+package com.lc.day03.exer;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerFor01 {
+    public static void main(String[] args) {
+        //遍历1-100以内的偶数,并获取偶数的个数,获取所有的偶数的和
+
+        // 分析
+        // 初始值  1
+        // 结束条件 100
+        // 循环体  if ( i % 2 == 0 )偶数
+        // 个数  在循环外部 声明变量  计数思想
+
+        // 黄豆  土豆  袋
+        int count = 0;
+        int sum = 0;
+
+        for (int i = 1; i <= 100 ; i++) {
+            //循环 偶数
+            if (i % 2 == 0){
+                count++; //数量
+                sum += i; //总和
+            }
+        }
+
+        System.out.println("个数:"+count);
+        System.out.println("和:"+sum);
+    }
+}

+ 31 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor02.java

@@ -0,0 +1,31 @@
+package com.lc.day03.exer;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerFor02 {
+    public static void main(String[] args) {
+        //输出所有的水仙花数,所谓水仙花数是指一个3位数,其各个位上数字立方和等于其本身
+        //153
+        //1*1*1 = 1
+        //5*5*5 = 125
+        //3*3*3 = 27
+
+        for (int i = 100 ; i <= 999 ; i++) {
+            //个十百
+            int ge = i % 10;
+            int shi = i /10 % 10;
+            int bai = i / 100;
+
+            if ( ge * ge  * ge  + shi* shi* shi +  bai* bai* bai == i){
+                System.out.println(i);
+            }
+        }
+    }
+}

+ 55 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerFor03.java

@@ -0,0 +1,55 @@
+package com.lc.day03.exer;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerFor03 {
+    public static void main(String[] args) {
+        /*
+        说明:输入两个正整数m和n,求其最大公约数和最小公倍数。
+        比如:12和20的最大公约数是4,最小公倍数是60。
+         */
+
+        int m = 12;
+        int n = 20;
+
+        //公约数
+
+        // 12 20;
+        // 公约数 范围 最小  1   m - n 最小的数字   1 n
+        // 初始值 最大  最小  n - 1
+        // 初始值 n
+        // 迭代  -1
+        // 条件  >= 1
+
+        int min = m < n ? m : n;
+
+        for (int i = min; 1 <= i ; i--) {
+            if ( m % i == 0 && n % i ==0 ){
+                //符合停止 switch 停止
+                System.out.println(i);
+                break;
+            }
+        }
+
+
+        // 公倍数
+        // 公约数 m和n 最大     -   乘积
+
+        int max = m > n ? m : n;
+
+        for (int i = max; i < m*n ; i++) {
+            if ( i % m == 0 && i % n ==0 ){
+                //符合停止 switch 停止
+                System.out.println(i);
+                break;
+            }
+        }
+    }
+}

+ 68 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile04.java

@@ -0,0 +1,68 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerWhile04 {
+    public static void main(String[] args) {
+        /*
+        随机生成一个100以内的数,猜这个随机数是多少?
+        从键盘输入数,如果大了,提示大了;如果小了,提示小了;如果对了,就不再猜了,并统计一共猜了多少次。
+        提示:生成一个[a,b] 范围的随机数的方式:(int)(Math.random() * (b - a + 1) + a)
+
+        1/ 100以内的数   random
+        2/ 键盘输入数    num
+
+        while  random == num 结束   反   random != num 条件
+
+        3/ num 重新赋值
+            if num > random  大了
+
+            if num < random  小了
+
+         num 输出
+         */
+        //键盘输入
+        Scanner scanner = new Scanner(System.in);
+
+        //随机数
+        int r = (int) (Math.random()*100);
+
+        //请输入
+        System.out.println("请输入正整数(1-99)");
+        int num = scanner.nextInt();
+
+        //健壮
+        if (num > 99 || num < 0){
+            //
+            System.out.println("输入有误!!");
+        }else {
+
+            while ( r != num ){
+
+                if (num > r){
+                    System.out.println("输入的值大了");
+                }
+
+                if (num < r){
+                    System.out.println("输入的值小了");
+                }
+
+                //从新输入
+                num = scanner.nextInt();
+
+            }
+            System.out.println("猜对了:"+num);
+        }
+
+        scanner.close();
+    }
+}

+ 45 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile05.java

@@ -0,0 +1,45 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerWhile05 {
+    public static void main(String[] args) {
+
+        //从键盘输入整数,输入0结束,统计输入的正数、负数的个数。
+        //键盘输入
+        Scanner scanner = new Scanner(System.in);
+
+        int num = scanner.nextInt();
+
+        //正
+        int positive = 0;
+        //负
+        int negative = 0;
+
+        while ( num!= 0){
+
+            if (num > 0){
+                positive++;
+            }else{
+                negative++;
+            }
+            //重新输入
+            System.out.println("重新输入,0 退出");
+            num = scanner.nextInt();
+        }
+
+        //输出
+        System.out.println("正:"+positive);
+        System.out.println("负:"+negative);
+        scanner.close();
+    }
+}

+ 38 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/ExerWhile06.java

@@ -0,0 +1,38 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: ExerFor01
+ * Package: com.lc.day03.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:44
+ * @Version 1.0
+ */
+public class ExerWhile06 {
+    public static void main(String[] args) {
+
+        /*
+        世界最高山峰是珠穆朗玛峰,它的高度是8848.86米,假如我有一张足够大的纸,它的厚度是0.1毫米。
+        请问,我折叠多少次,可以折成珠穆朗玛峰的高度?
+        1000毫米 = 1米
+         */
+
+        double zf = 8848.86 * 1000;
+
+        double paper = 0.1;
+
+        int count = 0; //计数
+
+        while (paper <= zf){
+
+            paper*=2;
+
+            count++;
+        }
+        System.out.println("count:"+count);
+
+    }
+}

+ 60 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/Exer_Scanner.java

@@ -0,0 +1,60 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Exer_Scanner {
+    /*
+    大家都知道,如果想成为一名ikun,当然要提出一定的条件:是否中分:是; 背带裤:是; 篮球:是。
+
+    如果这三个条件同时满足,则:“真爱粉”
+    如果三个条件有为真的情况,则:“假ikun”
+    如果三个条件都不满足,则:“小黑子!”
+
+    提示:
+    System.out.println(“是否中分: (1/0));
+    scanner.nextInt();
+
+    System.out.println(“篮球: (true/false));
+    scanner.nextBoolean();
+
+    System.out.println(“背带裤: (是/否));
+    scanner.next();   //"是".equals(str)
+     */
+
+    public static void main(String[] args) {
+        //键盘输入对象
+        Scanner scanner = new Scanner(System.in);
+
+        //int
+        System.out.println("是否中分: (1/0)");
+        int zf = scanner.nextInt();
+
+        //boolean
+        System.out.println("篮球: (true/false)");
+        boolean lq = scanner.nextBoolean();
+
+        //String
+        System.out.println("背带裤: (是/否)");
+        String bdk = scanner.next();
+
+        //if 条件
+        if ( zf == 1 && lq &&  "是".equals(bdk)){
+            System.out.println("真爱粉");
+        }else if (  zf == 1 || lq ||  "是".equals(bdk) ){
+            System.out.println("假粉粉");
+        }else {
+            System.out.println("小黑子!");
+        }
+
+        scanner.close();
+    }
+}

+ 46 - 0
01_JavaSe/JavaSe/day03/src/com/lc/day03/exer/Exer_Scanner1.java

@@ -0,0 +1,46 @@
+package com.lc.day03.exer;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: Demo01_For
+ * Package: com.lc.day03
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/15 9:36
+ * @Version 1.0
+ */
+public class Exer_Scanner1 {
+    /*
+    我家的狗5岁了,5岁的狗相当于人类多大呢?其实,狗的前两年每一年相当于人类的10.5岁,之后每增加一年就增加四岁。那么5岁的狗相当于人类多少年龄呢?应该是:10.5 + 10.5 + 4 + 4 + 4 = 33岁。
+
+    编写一个程序,获取用户输入的狗的年龄,通过程序显示其相当于人类的年龄。如果用户输入负数,请显示一个提示信息。
+
+     */
+
+    public static void main(String[] args) {
+        //键盘输入对象
+        Scanner scanner = new Scanner(System.in);
+        //输入
+        System.out.println("请输入狗狗的年龄");
+        int age = scanner.nextInt();
+
+        int sum = 0;
+
+        if ( age == 1 || age == 2){
+            double v = age * 10.5;
+            sum +=v;
+        } else if (age > 2 ){
+            int i = (age - 2) * 4;
+            sum+=i;
+
+            sum += 21;
+        }
+
+        System.out.println("sum:"+sum);
+
+
+        scanner.close();
+    }
+}

+ 29 - 0
01_JavaSe/JavaSe/day04/.gitignore

@@ -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

+ 11 - 0
01_JavaSe/JavaSe/day04/day04.iml

@@ -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="jdk" jdkName="17" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 28 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr01.java

@@ -0,0 +1,28 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr01 {
+    public static void main(String[] args) {
+        //声明数组
+        int[] arr = new int[]{1,2,3,4,5,6};
+
+        //省略
+        String[] names = {"zs","ls","kk"};
+
+        //分开
+        int[] arr1;
+        arr1 = new int[]{1,2,3,4,5,6};
+
+        //new 记住  数组存放到 堆内存
+        System.out.println(names); //[Ljava.lang.String;@4eec7777  16进制 堆内存的地址
+        System.out.println(arr);
+    }
+}

+ 49 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr02.java

@@ -0,0 +1,49 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr02 {
+    //数组访问操作
+    public static void main(String[] args) {
+        //names
+        String[] names = {"小舞","猪猪请","戴沐白","胖子","唐三"};
+
+        //scores
+        int[] scores = {87,56,45,78,92};
+
+        // 编号  0 - lenght -1结束
+
+        //获取
+        System.out.println(names[0]+"-"+scores[0]);
+        System.out.println(names[1]+"-"+scores[1]);
+
+        String dmbn = names[2];
+        int dmbs = scores[2];
+        System.out.println(dmbn+"-"+dmbs);
+
+        System.out.println("----");
+        System.out.println(names[3]+"-"+scores[3]);
+
+        //设置 修改
+        names[3] = "马洪俊";
+        scores[3] = 97;
+
+        //查看
+        System.out.println(names[3]+"-"+scores[3]);
+
+        System.out.println("--------");
+        //长度
+        System.out.println(names.length);//数组长度
+
+        //最后一个元素
+        int length = names.length;
+        System.out.println(names[length-1]+"-"+scores[length-1]);
+    }
+}

+ 35 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr03.java

@@ -0,0 +1,35 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr03 {
+    //数组访问操作
+    public static void main(String[] args) {
+        //names
+        String[] names = {"小舞","猪猪请","戴沐白","胖子","唐三"};
+
+        //scores
+        int[] scores = {87,56,45,78,92};
+
+        // 索引  0   - lenght - 1
+        // for  开始 结束条件
+        for (int i = 0; i < names.length; i++) {
+
+            //每一个元素
+            System.out.println(names[i]+"-"+scores[i]);
+        }
+
+        System.out.println("--------");
+        //快捷键
+        for (int i = 0; i < names.length; i++) {
+            System.out.println(names[i]+"-"+scores[i]);
+        }
+    }
+}

+ 53 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr04.java

@@ -0,0 +1,53 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr04 {
+
+    public static void main(String[] args) {
+
+        //scores
+        int[] scores = {87,56,45,78,92};
+
+        //数组统计:求总和、均值
+        //计数
+        int sum = 0;
+
+        for (int i = 0; i < scores.length; i++) {
+            sum+=scores[i];
+        }
+
+        System.out.println("和:"+sum);
+        System.out.println("平均值:"+ ( (0.0+sum) / scores.length ) );
+
+        System.out.println("-----------------");
+
+        //最大值
+        int[] arr = {87,56,45,78,92};
+
+        //假设 最大值 元素 大于我们假设的值 就替换。
+        int max = arr[0]; // 不能使用0  都是负数
+        int index = 0;
+
+        for (int i = 0; i < arr.length; i++) {
+            //替换最大值
+            if (arr[i] > max){
+                max = arr[i];
+                //跟新 index
+                index = i;
+            }
+        }
+
+        System.out.println("max:"+max);
+        System.out.println("index:"+index);
+
+
+    }
+}

+ 29 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr05.java

@@ -0,0 +1,29 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr05 {
+
+    public static void main(String[] args) {
+
+        //动态
+        int[] arr = new int[10];//长度
+
+        //m默认
+        System.out.println(arr[0]);
+
+        //赋值
+        arr[0] = 10;
+
+        //输出
+        System.out.println(arr[0]);
+
+    }
+}

+ 30 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr06.java

@@ -0,0 +1,30 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr06 {
+
+    public static void main(String[] args) {
+
+        //动态方式创建
+        int[] arr = new int[6];
+
+        System.out.println(arr[0]);
+        System.out.println(arr[1]);
+
+        arr[0] = 10;
+        arr[1] = 20;
+
+        System.out.println(arr[0]);
+        System.out.println(arr[1]);
+
+
+    }
+}

+ 30 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArr07.java

@@ -0,0 +1,30 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArr01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 9:32
+ * @Version 1.0
+ */
+public class DemoArr07 {
+
+    public static void main(String[] args) {
+
+        //动态方式创建
+        int[] arr = new int[6];
+
+        //访问不存在的值
+        //数组越界 没有 超出索引范围
+        //System.out.println(arr[6]);
+
+        arr = null; // 置为null 放到回收站
+
+        //访问空对象下的元素
+        //
+        System.out.println(arr[0]);
+
+    }
+}

+ 41 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr08.java

@@ -0,0 +1,41 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArrArr08
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 14:13
+ * @Version 1.0
+ */
+public class DemoArrArr08 {
+    public static void main(String[] args) {
+
+        //声明 初始化
+        int[][] arr = new int[][]{
+                {1,2,3,4},
+                {1,6,7},
+                {2,3,4}
+        };
+
+        //操作
+        //获取  索引
+        System.out.println(arr[1][1]);
+
+        //设置
+        arr[1][1] = 10;
+
+        System.out.println(arr[1][1]);
+
+        //长度
+        //大数组长度
+        int length = arr.length;
+        System.out.println(length); //3
+
+        //获取 第一个小数组的长度
+        System.out.println(arr[0].length);
+
+
+    }
+}

+ 38 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr09.java

@@ -0,0 +1,38 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArrArr08
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 14:13
+ * @Version 1.0
+ */
+public class DemoArrArr09 {
+    public static void main(String[] args) {
+
+        //声明 初始化 动态
+        //声明 必须给出大数组 长度
+        int[][] arr = new int[3][];
+
+        //存储的就是地址   引用 null
+        System.out.println(arr[0]);
+
+        //赋值小数组
+        arr[0] = new int[10];
+
+        System.out.println(arr[0]); //地址
+        //简单格式不可以分开赋值
+        int[] a ={1,2,3};
+        //可以先定义数组
+        arr[1] = a;
+
+        System.out.println(arr[1]); //地址
+
+        arr[1][2] = 33;
+
+        System.out.println(a[2]); //??
+
+    }
+}

+ 33 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr10.java

@@ -0,0 +1,33 @@
+package com.lc.day04;
+
+/**
+ * ClassName: DemoArrArr08
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 14:13
+ * @Version 1.0
+ */
+public class DemoArrArr10 {
+    public static void main(String[] args) {
+
+        int[][] arr = {
+            {1,2,3},
+            {4,5,6,7,8},
+            {7,8,9}
+        };
+
+        //遍历
+        for (int i = 0; i < arr.length; i++) {
+            //System.out.println(arr[i]); // 地址
+            //遍历小数组
+            for (int k = 0; k < arr[i].length; k++) {
+                System.out.print(arr[i][k]);
+            }
+            System.out.println();
+        }
+
+
+    }
+}

+ 41 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/DemoArrArr11.java

@@ -0,0 +1,41 @@
+package com.lc.day04;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: DemoArrArr08
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 14:13
+ * @Version 1.0
+ */
+public class DemoArrArr11 {
+    public static void main(String[] args) {
+
+        int[] arr = {1,2,3,4,5,6,7,8};
+
+        int i = Arrays.binarySearch(arr, 12);
+        System.out.println(i);
+
+        //排序
+        Arrays.sort(arr);
+
+        //数组复制
+        int[] ints = Arrays.copyOf(arr, 3);
+
+        System.out.println(Arrays.toString(ints));
+        //数组填充
+
+        Arrays.fill(arr, 3);
+
+        System.out.println(Arrays.toString(arr));
+        //数组比较
+
+        int compare = Arrays.compare(arr, ints);
+        System.out.println(compare);
+
+
+    }
+}

+ 14 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/Test01.java

@@ -0,0 +1,14 @@
+package com.lc.day04;
+
+/**
+ * ClassName: Test01
+ * Package: com.lc.day04
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 8:42
+ * @Version 1.0
+ */
+public class Test01 {
+
+}

+ 33 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer01.java

@@ -0,0 +1,33 @@
+package com.lc.day04.exer;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer01 {
+    public static void main(String[] args) {
+        //找最值及其所有最值的下标
+
+        int[] arr = {1,2,3,6,79,100,100,100};
+
+        int max = arr[0];
+        String index = "";
+
+        for (int i = 0; i < arr.length; i++) {
+            if (arr[i] > max){
+                max  = arr[i];
+                index = i + ",";
+            }else if (arr[i] == max){
+                index += i + ",";
+            }
+        }
+
+        System.out.println(index);
+
+    }
+}

+ 41 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer02.java

@@ -0,0 +1,41 @@
+package com.lc.day04.exer;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer02 {
+    public static void main(String[] args) {
+        //找最值及其所有最值的下标
+
+        int[] arr = {5,4,6,8,9,0,1,2,7,3};
+
+        int max = arr[0];
+        int min = arr[0];
+
+        int maxi = 0;
+        int mini = 0;
+
+        for (int i = 0; i < arr.length; i++) {
+            if (arr[i] > max){
+                max  = arr[i];
+                maxi = i;
+            }
+            if (arr[i] < min){
+                min  = arr[i];
+                mini = i;
+            }
+        }
+
+        //去除最大值
+        arr[maxi] = 0;
+        arr[mini] = 0;
+
+        //求和  / len - 2
+    }
+}

+ 43 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer03.java

@@ -0,0 +1,43 @@
+package com.lc.day04.exer;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer03 {
+    public static void main(String[] args) {
+        //数组
+        int[] arr = {1, -2, 3, 10, -4, 7, 2, -5};
+        //3, 10, -4, 7, 2
+
+        //分析
+        // 和  < 0 ;  和  = 0
+        // 和  和  最大值 假设 0  替换
+
+        int sum = 0;
+        int max = sum;
+
+        for (int i = 0; i < arr.length; i++) {
+            sum+=arr[i];
+
+            //和 小于0 重置
+            if (sum < 0){
+                sum = 0;
+            }
+
+            //和 大于 最大值
+            if ( sum > max ){
+                max = sum;
+            }
+
+        }
+
+        System.out.println(max);
+
+    }
+}

+ 44 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer04.java

@@ -0,0 +1,44 @@
+package com.lc.day04.exer;
+
+import java.lang.reflect.Array;
+import java.util.Arrays;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer04 {
+    public static void main(String[] args) {
+        // 创建一个长度为6的int型数组,要求数组元素的值都在1-30之间,
+        // 且是随机赋值。同时,要求元素的值各不相同。
+
+        // len = 6
+        // Math.random*30 + 1; 1-30之间
+
+        //for 结束6
+        //1 次 7
+        //2 次 7 二次遍历  当前 i 和  数组中的值比较 一致。 在从新运行一次  迭代条件 --
+        //动态初始化数组
+        int[] arr = new int[6];
+        //遍历赋值
+        for (int i = 0; i < arr.length; i++) {
+            //生成随机数
+            int v = (int) (Math.random() * 10) + 1;
+            arr[i] = v;
+            //只需要检查已经赋值的元素
+            for (int k = 0; k < i; k++) {
+                if (arr[k] == v ){
+                    //发现重复 从新赋值
+                    i--;
+                    break;
+                }
+            }
+        }
+        System.out.println(Arrays.toString(arr));
+    }
+}

+ 45 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer05.java

@@ -0,0 +1,45 @@
+package com.lc.day04.exer;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer05 {
+    public static void main(String[] args) {
+        //创建二维数组
+        int[][] arr = new int[10][];
+
+        for (int i = 0; i < arr.length ; i++) {
+            //新建数组
+            arr[i] = new int[i+1];
+
+            //赋值
+            for (int j = 0; j <= i; j++) {
+
+                if (j == 0 || j==i){
+                    arr[i][j] = 1;
+                }else{
+                    arr[i][j] = arr[i-1][j] + arr[i-1][j-1];
+                }
+            }
+        }
+        //打印输出
+        for (int i = 0; i < arr.length; i++) {
+            for (int k = 0; k < arr[i].length; k++) {
+                System.out.print(arr[i][k]+" ");
+            }
+            System.out.println();
+        }
+
+
+
+
+    }
+}

+ 49 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer06.java

@@ -0,0 +1,49 @@
+package com.lc.day04.exer;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer06 {
+    public static void main(String[] args) {
+        //Exer05数组元素的反转\
+
+        int[] arr = { 1,2,3,4,5,6,7,8,9 };
+
+        // 交换        声明临时变量
+        // 交换次数
+
+        for (int i = 0; i < arr.length/2; i++) {
+            //第一  最后  length -1 -i
+
+            //交换
+            int temp = arr[i];
+            arr[i] = arr[arr.length -1 -i];
+            arr[arr.length -1 -i] = temp;
+        }
+
+        System.out.println(Arrays.toString(arr));
+
+        //方式1
+
+
+
+        int[] arr1 = { 1,2,3,4,5,6,7,8,9 };
+
+        for (int i = 0 ,j = arr1.length-1; i < arr.length/2; i++ , j--) {
+            //交换
+            int temp = arr1[i];
+            arr1[i] = arr1[j];
+            arr1[j] = temp;
+        }
+
+        System.out.println(Arrays.toString(arr1));
+    }
+}

+ 45 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer07.java

@@ -0,0 +1,45 @@
+package com.lc.day04.exer;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer07 {
+    public static void main(String[] args) {
+        //数组查找
+        int[] arr = { 1,2,3,4,5,6,7,8,9 };
+
+        //while
+        //目标值
+        int val = 9;
+
+        int left = 0;
+        int right = arr.length -1;
+        int mid = 0;
+
+        while ( left <= right){
+            //重新计算
+            mid = (left+right) /2;
+
+            if (val > arr[mid]){
+                //修改左边的索引
+                left = mid+1;
+            }
+            if (val < arr[mid]){
+                //修改左边的索引
+                right = mid-1;
+            }
+            if (val == arr[mid]){
+                System.out.println(mid);
+                break;
+            }
+        }
+    }
+}

+ 35 - 0
01_JavaSe/JavaSe/day04/src/com/lc/day04/exer/Exer08.java

@@ -0,0 +1,35 @@
+package com.lc.day04.exer;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: Exer01
+ * Package: com.lc.day04.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/16 10:47
+ * @Version 1.0
+ */
+public class Exer08 {
+    public static void main(String[] args) {
+        //数组查找
+        int[] arr = { 11,21,31,41,5,6,7,8,9 };
+
+
+        for (int i = 0; i < arr.length; i++) {
+
+            for (int j = 0; j < arr.length - i - 1; j++) {
+
+                if (arr[j] > arr[j+1]){
+                    //交换
+                    int temp = arr[j];
+                    arr[j] = arr[j+1];
+                    arr[j+1] = temp;
+                }
+            }
+        }
+
+        System.out.println(Arrays.toString(arr));
+    }
+}

+ 29 - 0
01_JavaSe/JavaSe/day05/.gitignore

@@ -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

+ 11 - 0
01_JavaSe/JavaSe/day05/day05.iml

@@ -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="jdk" jdkName="17" jdkType="JavaSDK" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 23 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/arr/Student.java

@@ -0,0 +1,23 @@
+package com.lc.day05.arr;
+
+/**
+ * ClassName: Student
+ * Package: com.lc.day05.arr
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 14:08
+ * @Version 1.0
+ */
+public class Student {
+
+    //学号number(int),年级state(int),成绩score(int)
+    int number;
+    int state;
+    int scoure;
+
+    public void showStudent(){
+        System.out.println("number:"+number + "- state:"+state+" -scoure:"+scoure);
+    }
+
+}

+ 64 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/arr/TestStudent.java

@@ -0,0 +1,64 @@
+package com.lc.day05.arr;
+
+/**
+ * ClassName: TestStudent
+ * Package: com.lc.day05.arr
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 14:09
+ * @Version 1.0
+ */
+public class TestStudent {
+    public static void main(String[] args) {
+        //创建20个学生对象,学号为1到20,年级和成绩都由随机数确定。
+
+        //学生数组
+        Student[]  students = new Student[20];
+
+        //赋值 for
+        for (int i = 0; i < students.length; i++) {
+            //赋值
+            Student student = new Student();
+            //学号
+            student.number = (i+1);
+            //班级
+            student.state = (int) (Math.random()*3)+1;
+            //成绩
+            student.scoure = (int) (Math.random()*100)+1;
+            //数组元素中的i 赋值对象。
+            students[i] = student;
+        }
+
+        System.out.println("三年级学生");
+
+        //打印出3年级(state值为3)的学生信息。
+        for (int i = 0; i < students.length; i++) {
+            if (students[i].state == 3){
+                //展示方法
+                students[i].showStudent();
+            }
+        }
+
+        System.out.println("------------排序------------");
+        //使用冒泡排序按学生成绩排序,并遍历所有学生信息
+        for (int i = 0; i < students.length; i++) {
+            for (int j = 0; j <students.length - i -1; j++) {
+                //比较
+                if ( students[j].scoure > students[j+1].scoure  ){
+                    //交换
+                    Student temp = students[j];
+                    students[j] = students[j+1];
+                    students[j+1] = temp;
+                }
+            }
+        }
+
+        System.out.println("-----------------------");
+        //所有遍历
+        for (int i = 0; i < students.length; i++) {
+            //展示方法
+            students[i].showStudent();
+        }
+    }
+}

+ 16 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer1/Cat.java

@@ -0,0 +1,16 @@
+package com.lc.day05.exer.exer1;
+
+/**
+ * ClassName: Cat
+ * Package: com.lc.day05.exer
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 10:31
+ * @Version 1.0
+ */
+public class Cat {
+
+    String name;
+
+}

+ 32 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer1/TestCat.java

@@ -0,0 +1,32 @@
+package com.lc.day05.exer.exer1;
+
+/**
+ * ClassName: TestCat
+ * Package: com.lc.day05.exer1
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 10:31
+ * @Version 1.0
+ */
+public class TestCat {
+    public static void main(String[] args) {
+
+        Cat cat1 = new Cat();
+        cat1.name = "zs";
+
+        Cat cat2 = new Cat();
+        cat2.name = "lisi";
+
+        Cat cat3 = new Cat();
+        cat3.name = "wangwu";
+
+        cat1 = cat2;
+
+        cat3 = cat1;
+
+        System.out.println(cat3.name); // ?
+        System.out.println(cat1.name); // ?
+
+    }
+}

+ 30 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer2/Person.java

@@ -0,0 +1,30 @@
+package com.lc.day05.exer.exer2;
+
+/**
+ * ClassName: Person
+ * Package: com.lc.day05.exer2
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:46
+ * @Version 1.0
+ */
+public class Person {
+
+    String name;
+    int age;
+    int sex;
+
+    public void study(){
+        System.out.println("studying");
+    }
+
+    public void showAge(){
+        //在方法内部可以使用类成员属性
+        System.out.println("age:"+age);
+    }
+
+    public void addAge(){
+        age+=2;
+    }
+}

+ 27 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer2/TestPerson.java

@@ -0,0 +1,27 @@
+package com.lc.day05.exer.exer2;
+
+/**
+ * ClassName: TestPerson
+ * Package: com.lc.day05.exer2
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:49
+ * @Version 1.0
+ */
+public class TestPerson {
+    public static void main(String[] args) {
+        Person person = new Person();
+
+        person.age = 22;
+        person.name = "zs";
+
+        person.study();
+
+        person.showAge();
+
+        person.addAge();
+
+        person.showAge();
+    }
+}

+ 19 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer3/Circle.java

@@ -0,0 +1,19 @@
+package com.lc.day05.exer.exer3;
+
+/**
+ * ClassName: Circle
+ * Package: com.lc.day05.exer3
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:50
+ * @Version 1.0
+ */
+public class Circle {
+    //设计圆类Circle,包含属性(半径)和计算圆面积的方法。定义测试类,创建该Circle类的对象,并进行测试。
+    double r;
+
+    public double getArea(){
+        return Math.PI * r * r;
+    }
+}

+ 23 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer3/TestCircle.java

@@ -0,0 +1,23 @@
+package com.lc.day05.exer.exer3;
+
+/**
+ * ClassName: TestCircle
+ * Package: com.lc.day05.exer3
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:51
+ * @Version 1.0
+ */
+public class TestCircle {
+
+    public static void main(String[] args) {
+
+        Circle c = new Circle();
+
+        c.r = 5;
+
+        double area = c.getArea();
+        System.out.println(area);
+    }
+}

+ 62 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer4/TestMethod.java

@@ -0,0 +1,62 @@
+package com.lc.day05.exer.exer4;
+
+/**
+ * ClassName: TestMethod
+ * Package: com.lc.day05.exer4
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:53
+ * @Version 1.0
+ */
+public class TestMethod {
+
+
+    /*
+    3.1 编写程序,声明一个method方法,在方法中打印一个`10*8的*型矩形`,在main方法中调用该方法。
+    3.2 修改上一个程序,在method方法中,除打印一个`10*8的*型矩形`外,再计算该矩形的面积,并将其作为方法返回值。在main方法中调用该方法,接收返回的面积值并打印。
+    3.3 修改上一个程序,在method方法提供m和n两个参数,方法中打印一个`m*n的*型矩形`,并计算该矩形的面积, 将其作为方法返回值。在main方法中调用该方法,接收返回的面积值并打印。
+     */
+    public void printStart(){
+        for (int i = 0; i < 10; i++) {
+            for (int j = 0; j < 8; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+    }
+
+    public int printStart2(){
+        for (int i = 0; i < 10; i++) {
+            for (int j = 0; j < 8; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+
+        return 10*8;
+    }
+
+    public int printStart3(int m , int n){
+        for (int i = 0; i < m; i++) {
+            for (int j = 0; j < n; j++) {
+                System.out.print(" *");
+            }
+            System.out.println();
+        }
+
+        return m*n;
+    }
+
+    public static void main(String[] args) {
+        TestMethod testMethod = new TestMethod();
+        testMethod.printStart();
+        System.out.println("----------------------------");
+        int i = testMethod.printStart2();
+        System.out.println(i);
+        System.out.println("----------------------------");
+        int i1 = testMethod.printStart3(10, 10);
+        System.out.println(i1);
+    }
+
+}

+ 28 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer5/StringTools.java

@@ -0,0 +1,28 @@
+package com.lc.day05.exer.exer5;
+
+/**
+ * ClassName: StringTools
+ * Package: com.lc.day05.exer.exer5
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 16:02
+ * @Version 1.0
+ */
+public class StringTools {
+    //n个字符串进行拼接,每一个字符串之间使用某字符进行分割,如果没有传入字符串,那么返回空字符串""
+    /*
+        可变参数1 String
+         参数2  字符
+
+         那么返回空字符串
+     */
+    public String concat( char c , String ... strs ){
+        String s = "";
+        for (int i = 0; i < strs.length; i++) {
+            s+= strs[i]+c;
+        }
+
+        return s;
+    }
+}

+ 18 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/exer/exer5/StringToolsTest.java

@@ -0,0 +1,18 @@
+package com.lc.day05.exer.exer5;
+
+/**
+ * ClassName: StringTools
+ * Package: com.lc.day05.exer.exer5
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 16:02
+ * @Version 1.0
+ */
+public class StringToolsTest {
+    public static void main(String[] args) {
+        StringTools stringTools = new StringTools();
+        String concat = stringTools.concat('-', "hello", "world");
+        System.out.println(concat);
+    }
+}

+ 37 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/method1/DemoMethod01.java

@@ -0,0 +1,37 @@
+package com.lc.day05.method1;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: DemoMethod01
+ * Package: com.lc.day05.method1
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 10:52
+ * @Version 1.0
+ */
+public class DemoMethod01 {
+
+    //方法
+    public void show(){
+        System.out.println("show");
+    }
+
+    public static void main(String[] args) {
+        DemoMethod01 demoMethod01 = new DemoMethod01();
+        demoMethod01.show();
+        demoMethod01.show();
+        demoMethod01.show();
+
+
+        //
+        System.out.println(Math.sqrt(4));
+        new Scanner(System.in).nextInt();
+
+        System.out.println();
+
+        Math.max(20,20);
+    }
+
+}

+ 64 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/method1/DemoMethod02.java

@@ -0,0 +1,64 @@
+package com.lc.day05.method1;
+
+import java.util.Scanner;
+
+/**
+ * ClassName: DemoMethod01
+ * Package: com.lc.day05.method1
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 10:52
+ * @Version 1.0
+ */
+public class DemoMethod02 {
+
+    public void sayHello1(){
+        System.out.println("hello");
+    }
+
+    public void sayHello2(String str){
+        System.out.println(str);
+    }
+
+    public String sayHello3(){
+
+        return "hello";
+    }
+
+    public String sayHello4( String str ){
+
+        return "hello "+str;
+    }
+
+    public static void main(String[] args) {
+        DemoMethod02 method02 = new DemoMethod02();
+
+        //调用方法
+        method02.sayHello1();
+
+         // 有参数 没返回值
+        method02.sayHello2("hello");
+
+        // 有返回值 没有参数
+        String m = method02.sayHello3();
+        System.out.println(m);
+
+        //有返回  有参数
+        //调用方法的时候 hello 实参
+        // 定义的时候 形参 定义 类型 接收实参的
+        String hello = method02.sayHello4("hello");
+        System.out.println(hello);
+
+
+        //1、创建Scanner的对象
+        Scanner input = new Scanner(System.in);//System.in默认代表键盘输入
+
+        //2、提示输入xx
+        System.out.print("请输入一个整数:"); //对象.非静态方法(实参列表)
+
+        //3、接收输入内容
+        int num = input.nextInt();  //对象.非静态方法()
+
+    }
+}

+ 31 - 0
01_JavaSe/JavaSe/day05/src/com/lc/day05/method2/Person.java

@@ -0,0 +1,31 @@
+package com.lc.day05.method2;
+
+/**
+ * ClassName: Person
+ * Package: com.lc.day05.method2
+ * Description:
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2023/7/18 11:13
+ * @Version 1.0
+ */
+public class Person {
+    public static void main(String[] args) {
+        Person p1 = new Person();
+        p1.eat();
+
+    }
+
+    public static void eat() {
+        sleep();
+        System.out.println("人:吃饭 3");
+    }
+    public static void sleep(){
+        System.out.println("人:睡觉 1");
+        doSport();
+    }
+    public static void doSport(){
+        System.out.println("人:运动 2");
+        //eat()
+    }
+}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio