6 Commits 6e28c38af0 ... c921703d58

Autor SHA1 Mensaje Fecha
  xerga c921703d58 api hace 1 año
  guyanqing cb2171b7c9 apiday02 hace 1 año
  guyanqing b442c7cc4e oopday02 hace 1 año
  guyanqing 020e6ede11 javase hace 1 año
  guyanqing 0b146bd531 day05-javase hace 1 año
  guyanqing 835356a206 javase-dayo4 hace 1 año
Se han modificado 100 ficheros con 2006 adiciones y 0 borrados
  1. 8 0
      .idea/.gitignore
  2. 9 0
      .idea/VIPQ.iml
  3. 6 0
      .idea/misc.xml
  4. 11 0
      .idea/modules.xml
  5. 6 0
      .idea/vcs.xml
  6. 16 0
      JavaSE/.idea/compiler.xml
  7. 6 0
      JavaSE/.idea/encodings.xml
  8. 20 0
      JavaSE/.idea/jarRepositories.xml
  9. 20 0
      JavaSE/.idea/misc.xml
  10. 126 0
      JavaSE/.idea/uiDesigner.xml
  11. 16 0
      JavaSE/day04/pom.xml
  12. 55 0
      JavaSE/day04/src/main/java/com/sf/Day04.java
  13. 12 0
      JavaSE/day04/src/main/java/com/sf/Test1.java
  14. 41 0
      JavaSE/day04/src/main/java/com/sf/Test2.java
  15. 26 0
      JavaSE/day04/src/main/java/com/sf/Test3.java
  16. 21 0
      JavaSE/day04/src/main/java/com/sf/Test4.java
  17. 41 0
      JavaSE/day04/src/main/java/com/sf/Test5.java
  18. 21 0
      JavaSE/day04/src/main/java/com/sf/Test6.java
  19. 16 0
      JavaSE/day05/pom.xml
  20. 33 0
      JavaSE/day05/src/main/java/com/sf/BinFind.java
  21. 100 0
      JavaSE/day05/src/main/java/com/sf/Test1.java
  22. 89 0
      JavaSE/day05/src/main/java/com/sf/Test19BubbleSort.java
  23. 34 0
      JavaSE/day05/src/main/java/com/sf/Test19BubbleSort2.java
  24. 88 0
      JavaSE/day05/src/main/java/com/sf/Test2.java
  25. 46 0
      JavaSE/day05/src/main/java/com/sf/Test3.java
  26. 26 0
      JavaSE/day05/src/main/java/com/sf/TestArrayOrderSearch.java
  27. 38 0
      JavaSE/day05/src/main/java/com/sf/TestArrayReverse1.java
  28. 25 0
      JavaSE/day05/src/main/java/com/sf/TestArrayReverse2.java
  29. BIN
      JavaSE/day05/target/classes/com/sf/BinFind.class
  30. BIN
      JavaSE/day05/target/classes/com/sf/Test1.class
  31. BIN
      JavaSE/day05/target/classes/com/sf/Test19BubbleSort.class
  32. BIN
      JavaSE/day05/target/classes/com/sf/Test19BubbleSort2.class
  33. BIN
      JavaSE/day05/target/classes/com/sf/Test2.class
  34. BIN
      JavaSE/day05/target/classes/com/sf/Test3.class
  35. BIN
      JavaSE/day05/target/classes/com/sf/TestArrayOrderSearch.class
  36. BIN
      JavaSE/day05/target/classes/com/sf/TestArrayReverse1.class
  37. BIN
      JavaSE/day05/target/classes/com/sf/TestArrayReverse2.class
  38. BIN
      JavaSE/day05/target/classes/com/sf/TestYear.class
  39. BIN
      JavaSE/day05/target/classes/com/sf/YEARTest.class
  40. 16 0
      JavaSE/day06/pom.xml
  41. 18 0
      JavaSE/day06/src/main/java/com/sf/City.java
  42. 13 0
      JavaSE/day06/src/main/java/com/sf/Country.java
  43. 17 0
      JavaSE/day06/src/main/java/com/sf/Huashan.java
  44. 12 0
      JavaSE/day06/src/main/java/com/sf/Jianzong.java
  45. 31 0
      JavaSE/day06/src/main/java/com/sf/Person.java
  46. 11 0
      JavaSE/day06/src/main/java/com/sf/Qizong.java
  47. 35 0
      JavaSE/day06/src/main/java/com/sf/Student.java
  48. 12 0
      JavaSE/day06/src/main/java/com/sf/Test.java
  49. 16 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/Father.java
  50. 16 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/Son.java
  51. 20 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/Test1.java
  52. 18 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/Test2.java
  53. 29 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/Test3.java
  54. 7 0
      JavaSE/day06/src/main/java/com/sf/codeBlock/TestSonCode.java
  55. 20 0
      JavaSE/day06/src/main/java/com/sf/final1/A.java
  56. 12 0
      JavaSE/day06/src/main/java/com/sf/final1/B.java
  57. 21 0
      JavaSE/day06/src/main/java/com/sf/static2/Person.java
  58. 39 0
      JavaSE/day06/src/main/java/com/sf/static2/Student.java
  59. 8 0
      JavaSE/day06/src/main/java/com/sf/static2/Student2.java
  60. 9 0
      JavaSE/day06/src/main/java/com/sf/static2/TestStatic.java
  61. 15 0
      JavaSE/day06/src/main/java/com/sf/static2/TestStaticMethod.java
  62. BIN
      JavaSE/day06/target/classes/com/sf/City.class
  63. BIN
      JavaSE/day06/target/classes/com/sf/Country.class
  64. BIN
      JavaSE/day06/target/classes/com/sf/Huashan.class
  65. BIN
      JavaSE/day06/target/classes/com/sf/Jianzong.class
  66. BIN
      JavaSE/day06/target/classes/com/sf/Person.class
  67. BIN
      JavaSE/day06/target/classes/com/sf/Qizong.class
  68. BIN
      JavaSE/day06/target/classes/com/sf/Student.class
  69. BIN
      JavaSE/day06/target/classes/com/sf/TTT.class
  70. BIN
      JavaSE/day06/target/classes/com/sf/Test.class
  71. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/Father.class
  72. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/Son.class
  73. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/Test1.class
  74. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/Test2.class
  75. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/Test3.class
  76. BIN
      JavaSE/day06/target/classes/com/sf/codeBlock/TestSonCode.class
  77. BIN
      JavaSE/day06/target/classes/com/sf/final1/A.class
  78. BIN
      JavaSE/day06/target/classes/com/sf/final1/B.class
  79. BIN
      JavaSE/day06/target/classes/com/sf/static2/Person.class
  80. BIN
      JavaSE/day06/target/classes/com/sf/static2/Student.class
  81. BIN
      JavaSE/day06/target/classes/com/sf/static2/Student2.class
  82. BIN
      JavaSE/day06/target/classes/com/sf/static2/TestStatic.class
  83. BIN
      JavaSE/day06/target/classes/com/sf/static2/TestStaticMethod.class
  84. 11 0
      JavaSE/day13/day13.iml
  85. 30 0
      JavaSE/day13/src/com/lc/day13/date03/TestDate.java
  86. 35 0
      JavaSE/day13/src/com/lc/day13/date04/Test01.java
  87. 58 0
      JavaSE/day13/src/com/lc/day13/date04/Test02.java
  88. 54 0
      JavaSE/day13/src/com/lc/day13/date05/Test01.java
  89. 41 0
      JavaSE/day13/src/com/lc/day13/date05/Test02.java
  90. 23 0
      JavaSE/day13/src/com/lc/day13/integer06/TestInteger.java
  91. 29 0
      JavaSE/day13/src/com/lc/day13/integer06/TestInteger1.java
  92. 31 0
      JavaSE/day13/src/com/lc/day13/integer06/TestInteger2.java
  93. 51 0
      JavaSE/day13/src/com/lc/day13/integer06/TestInteger3.java
  94. 50 0
      JavaSE/day13/src/com/lc/day13/integer06/TestInteger4.java
  95. 48 0
      JavaSE/day13/src/com/lc/day13/str01/TestString.java
  96. 39 0
      JavaSE/day13/src/com/lc/day13/str01/TestString01.java
  97. 40 0
      JavaSE/day13/src/com/lc/day13/str01/TestString02.java
  98. 30 0
      JavaSE/day13/src/com/lc/day13/str01/TestString03.java
  99. 39 0
      JavaSE/day13/src/com/lc/day13/str01/TestString04.java
  100. 46 0
      JavaSE/day13/src/com/lc/day13/str01/TestString05.java

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 9 - 0
.idea/VIPQ.iml

@@ -0,0 +1,9 @@
+<?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$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.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>

+ 11 - 0
.idea/modules.xml

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

+ 6 - 0
.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>

+ 16 - 0
JavaSE/.idea/compiler.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <annotationProcessing>
+      <profile name="Maven default annotation processors profile" enabled="true">
+        <sourceOutputDir name="target/generated-sources/annotations" />
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
+        <outputRelativeToContentRoot value="true" />
+        <module name="dayapi" />
+        <module name="day06" />
+        <module name="day05" />
+        <module name="day04" />
+      </profile>
+    </annotationProcessing>
+  </component>
+</project>

+ 6 - 0
JavaSE/.idea/encodings.xml

@@ -1,6 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
+<<<<<<< HEAD
   <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
+=======
+  <component name="Encoding" native2AsciiForPropertiesFiles="true" defaultCharsetForPropertiesFiles="UTF-8">
+    <file url="file://$PROJECT_DIR$/dayapi/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/dayapi/src/main/resources" charset="UTF-8" />
+>>>>>>> cb2171b7c92a8e0290df886fe1fc7dd6fbf94100
     <file url="PROJECT" charset="UTF-8" />
   </component>
 </project>

+ 20 - 0
JavaSE/.idea/jarRepositories.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="RemoteRepositoriesConfiguration">
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Central Repository" />
+      <option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Maven Central repository" />
+      <option name="url" value="https://repo1.maven.org/maven2" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="jboss.community" />
+      <option name="name" value="JBoss Community repository" />
+      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
+    </remote-repository>
+  </component>
+</project>

+ 20 - 0
JavaSE/.idea/misc.xml

@@ -1,6 +1,26 @@
+<<<<<<< HEAD
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/out" />
   </component>
+=======
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
+  <component name="MavenProjectsManager">
+    <option name="originalFiles">
+      <list>
+        <option value="$PROJECT_DIR$/day04/pom.xml" />
+        <option value="$PROJECT_DIR$/day05/pom.xml" />
+        <option value="$PROJECT_DIR$/day06/pom.xml" />
+        <option value="$PROJECT_DIR$/dayapi/pom.xml" />
+      </list>
+    </option>
+    <option name="workspaceImportForciblyTurnedOn" value="true" />
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/out" />
+  </component>
+>>>>>>> cb2171b7c92a8e0290df886fe1fc7dd6fbf94100
 </project>

+ 126 - 0
JavaSE/.idea/uiDesigner.xml

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="Palette2">
@@ -121,4 +122,129 @@
       </item>
     </group>
   </component>
+=======
+<?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>
+>>>>>>> cb2171b7c92a8e0290df886fe1fc7dd6fbf94100
 </project>

+ 16 - 0
JavaSE/day04/pom.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.sf</groupId>
+    <artifactId>day04</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 55 - 0
JavaSE/day04/src/main/java/com/sf/Day04.java

@@ -0,0 +1,55 @@
+package com.sf;
+
+public class Day04 {
+    public static void main(String[] args) {
+        int a = 1;
+        a=2;
+        /**
+         * 定义数组
+         *  语法:数据类型[] 数组的变量名
+         *  定义了一个数据类型为int类型,变量名为arr的整形数组
+         */
+        int[] arr;
+
+        /**
+         * 定义数组的方式二
+         * 数据类型 变量名[];
+         * 定义了一个int类型的变量,变量名是arr数组
+         */
+        int arr2[];
+
+        double[] aa;
+        double bb[];
+        String[] cc;  //推荐
+        String dd[];
+
+/**
+ * 数组的静态初始化,
+ * 语法:数据类型[] 变量名 = new 数据类型[]{数据1,数据2,数据3,…};
+ */
+        int[]  ee = new int[]{1,2,3,4};
+
+
+        /**
+         * int[] arr;
+         * arr = new int[]{1,2,3,4,5};//正确
+         */
+        int[] abc;
+        abc = new int[]{5,6,7,8};
+
+
+        /**
+         * 简化格式:
+         * 数据类型[] 变量名 = {数据1,数据2,数据3,…};
+         */
+        int[] ff = {1,2,3};   //常用  推荐
+        String[] person = {"qq","ww","ee"};
+        String[] person1 = new String[]{"qq","ww","ee"};
+        int[] gg;
+        gg= new int[]{1, 2, 3};
+
+
+
+    }
+
+}

+ 12 - 0
JavaSE/day04/src/main/java/com/sf/Test1.java

@@ -0,0 +1,12 @@
+package com.sf;
+
+public class Test1 {
+    public static void main(String[] args) {
+        int[] arr = {1,2,3,4,5};
+        char[] word = {'h','e','l','l','o'};
+        String[] heros = {"袁隆平","邓稼先","钱学森"};
+        System.out.println(arr);
+        System.out.println(word);
+        System.out.println(heros);
+    }
+}

+ 41 - 0
JavaSE/day04/src/main/java/com/sf/Test2.java

@@ -0,0 +1,41 @@
+package com.sf;
+
+public class Test2 {
+    public static void main(String[] args) {
+
+
+        String[] str = {"电视剧1", "电视剧2", "电视剧3", "电视剧4", "电视剧5", "电视剧6"};
+
+        String[] subject = {"学科1", "学科2", "学科3", "学科4", "学科5", "学科6"};
+
+        int[] score = {99, 98, 97, 96, 95};
+        int length = score.length;
+//        System.out.println("数组的长度"+length);
+
+        /**
+         * 数组名[索引/下标]
+         */
+        String[] person = {"张三","李四","王五","赵六","孙七","李八","王九"};
+        System.out.println("当前数组的长度"+person.length);
+        String zs = person[0]; //张三
+        System.out.println(zs);
+        String ls = person[1]; //李四
+        System.out.println(ls);
+        String ww = person[2]; //王五
+        System.out.println(ww);
+//        System.out.println(person[3]);
+
+//        //张三和王五换个位置
+//        person[0]="王五";
+//        person[2]="张三";
+//        System.out.println("更改后的"+person[2]);
+//
+        System.out.println(person.length);
+        for (int i = 0 ;i< person.length;i++){
+            String person1 = person[i];
+            System.out.println(person1);
+        }
+
+
+    }
+}

+ 26 - 0
JavaSE/day04/src/main/java/com/sf/Test3.java

@@ -0,0 +1,26 @@
+package com.sf;
+
+public class Test3 {
+    /**
+     * 求和   求平均值
+     * @param args
+     */
+    public static void main(String[] args) {
+        int[] arr = {4,5,6,1,9};
+        int sum = 0;
+        for (int i=0 ; i< arr.length;i++){
+            sum += arr[i];
+        }
+        System.out.println("当前总和==="+sum);
+        //平均值  sum/arr.length
+        if(arr.length > 0){
+            int avg = sum/arr.length ;
+            System.out.println("当前数组的平均值==>"+avg);
+        }else {
+            System.out.println("当前数组为空");
+        }
+
+
+
+    }
+}

+ 21 - 0
JavaSE/day04/src/main/java/com/sf/Test4.java

@@ -0,0 +1,21 @@
+package com.sf;
+
+public class Test4 {
+    public static void main(String[] args) {
+        int[] scores = {5,4,6,8,9,0,1,2,7,3};
+        int max = scores[0];
+        int min = scores[0];
+        int sum = 0;
+        for(int i = 0;i < scores.length;i++){
+            if(max < scores[i]){
+                max = scores[i];
+            }
+            if(min > scores[i]){
+                min = scores[i];
+            }
+            sum += scores[i];
+        }
+        double avg = (double)(sum - max - min) / (scores.length - 2);
+        System.out.println("选手去掉最高分和最低分之后的平均分为:" + avg);
+    }
+}

+ 41 - 0
JavaSE/day04/src/main/java/com/sf/Test5.java

@@ -0,0 +1,41 @@
+package com.sf;
+
+public class Test5 {
+    public static void main(String[] args) {
+        /**   动态初始化
+         * 数组存储的元素的数据类型[] 数组名字 = new 数组存储的元素的数据类型[长度];
+         * 或
+         * 数组存储的数据类型[] 数组名字;
+         * 数组名字 = new 数组存储的数据类型[长度];
+         */
+        int[] aa = new int[3];
+        int[] bb;
+        bb = new int[4];
+//        for (int i =0;i<aa.length;i++ ){
+//            aa[i]=1;
+//        }
+            aa[0]=1;
+            aa[1]=2;
+            aa[2]=3;
+        for (int i =0;i<aa.length;i++ ){
+            System.out.println(aa[i]);
+        }
+
+        /*
+        基本数据类型
+         */
+        int[] vv = new int[5];
+        for (int i =0;i<vv.length;i++){
+            System.out.println(vv[i]);
+        }
+
+
+        /**
+         * 包装类
+         */
+        Integer[] mm = new Integer[5];
+        for (int i =0;i<mm.length;i++){
+            System.out.println(mm[i]);
+        }
+    }
+}

+ 21 - 0
JavaSE/day04/src/main/java/com/sf/Test6.java

@@ -0,0 +1,21 @@
+package com.sf;
+
+public class Test6 {
+    public static void main(String[] args) {
+        int[][] aa={{12,14,24},{23,18,35},{33,48,25},{27,28,35}};
+
+        int sum = 0;
+        int time  = 0;
+        for (int i =0;i<aa.length;i++){
+            for (int j = 0; j<aa[i].length;j++){
+               int bb = aa[i][j];
+               sum += bb;
+               time++;
+            }
+        }
+        System.out.println("sum==="+sum);
+        System.out.println("time==="+time);
+        System.out.println("平均值==="+sum/time);
+    }
+
+}

+ 16 - 0
JavaSE/day05/pom.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.sf</groupId>
+    <artifactId>day05</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 33 - 0
JavaSE/day05/src/main/java/com/sf/BinFind.java

@@ -0,0 +1,33 @@
+package com.sf;
+
+/**
+ * 二分查找
+ */
+public class BinFind {
+    public static void main(String[] args) {
+        //二分法查找:要求此数组必须是有序的。
+        int[] arr3 = new int[]{-99,-54,-2,0,2,33,43,256,999};
+        boolean isFlag = true;
+        int value = 256;
+//int value = 25;
+        int head = 0;//首索引位置
+        int end = arr3.length - 1;//尾索引位置
+        while(head <= end){
+            int middle = (head + end) / 2;
+            if(arr3[middle] == value){
+                System.out.println("找到指定的元素,索引为:" + middle);
+                isFlag = false;
+                break;
+            }else if(arr3[middle] > value){
+                end = middle - 1;
+            }else{//arr3[middle] < value
+                head = middle + 1;
+            }
+        }
+
+        if(isFlag){
+            System.out.println("未找打指定的元素");
+        }
+
+    }
+}

+ 100 - 0
JavaSE/day05/src/main/java/com/sf/Test1.java

@@ -0,0 +1,100 @@
+package com.sf;
+
+
+import javax.xml.transform.Source;
+import java.util.Arrays;
+
+public class Test1 {
+    public static void main(String[] args) {
+//        int[] aa = new int[5];
+//        for (int i= 0 ;i <aa.length;i++){
+//            aa[i] = i+1;
+//            System.out.println("数组元素"+aa[i]);
+//        }
+//        System.out.println("========================================");
+//        aa = null;
+//        System.out.println(aa[2]);
+/**
+ * 数组排序
+ */
+        int[] aa = {1,9,3,5,2,4,7,8};
+        Arrays.sort(aa,1,6);
+        System.out.println(Arrays.toString(aa));
+        /**
+         * 字符串排序
+         */
+        String[] str = {"zhangsan","lisi","gu"};
+        Arrays.sort(str);
+        System.out.println(Arrays.toString(str));
+
+        /**
+         * 二分查找
+         */
+        int[] bin = {1,2,3,4,5,6,7,8,9};
+        int i = Arrays.binarySearch(bin, 7);
+        System.out.println(i);
+
+        /**
+         * 数组的复制
+         */
+        int[] bin2 = {1,2,3,4,5,6,7,8,9};
+        int[] newBin2 = Arrays.copyOf(bin2, bin2.length);
+        System.out.println(Arrays.toString(newBin2));
+
+        int[] newBin3 = Arrays.copyOfRange(bin2, 0, 3);    //包左不包右
+        System.out.println(Arrays.toString(newBin3));
+
+        String[] str2 = {"zhangsan","lisi","gu"};
+        String[] newStr2 = Arrays.copyOf(str2, str2.length);
+        System.out.println(Arrays.toString(newStr2));
+
+        String[] newStr3 = Arrays.copyOfRange(str2, 0, 2);
+        System.out.println(Arrays.toString(newStr3));  //包左不包右
+
+        /**
+         *比较两个数组是否相等
+         */
+        int[] bin3 = {1,2,3,4,5,6,7,8,9};
+        int[] bin4 = {1,2,3,4,5,6,7,8,9};
+        int[] bin5 = {1,2,3,4,5};
+
+        boolean equals = Arrays.equals(bin3, bin4);
+        System.out.println("bin3==bin4======>"+equals);
+
+        boolean equals2 = Arrays.equals(bin3, bin5);
+        System.out.println("bin3==bin5=========>"+equals2);
+
+        /**
+         * 数组的填充
+         */
+        int[] cc = new int[5];
+        System.out.println(Arrays.toString(cc));
+
+        Arrays.fill(cc,5);
+        System.out.println(Arrays.toString(cc));
+        /**
+         * 用对象进行填充数组
+         */
+        String[] dd = new String[5];
+        System.out.println(Arrays.toString(dd));
+
+        Arrays.fill(dd,"这回不是null");
+        System.out.println(Arrays.toString(dd));
+
+
+        /**
+         * 将a数组[fromIndex,toIndex)部分填充为val值
+         */
+        int[] ff = new int[5];
+        System.out.println(Arrays.toString(ff));
+
+        Arrays.fill(ff,0,4,99); //包左不包右
+        System.out.println(Arrays.toString(ff));
+
+        String[] ee = new String[9];
+        System.out.println(Arrays.toString(ee));
+
+        Arrays.fill(ee,0,4,"非空啦");//包左不包右
+        System.out.println(Arrays.toString(ee));
+    }
+}

+ 89 - 0
JavaSE/day05/src/main/java/com/sf/Test19BubbleSort.java

@@ -0,0 +1,89 @@
+package com.sf;
+
+/*
+ 1、冒泡排序(最经典)
+思想:每一次比较“相邻(位置相邻)”元素,如果它们不符合目标顺序(例如:从小到大),
+     就交换它们,经过多轮比较,最终实现排序。
+	 (例如:从小到大)	 每一轮可以把最大的沉底,或最小的冒顶。
+
+过程:arr{6,9,2,9,1}  目标:从小到大
+
+第一轮:
+	第1次,arr[0]与arr[1],6>9不成立,满足目标要求,不交换
+	第2次,arr[1]与arr[2],9>2成立,不满足目标要求,交换arr[1]与arr[2] {6,2,9,9,1}
+	第3次,arr[2]与arr[3],9>9不成立,满足目标要求,不交换
+	第4次,arr[3]与arr[4],9>1成立,不满足目标要求,交换arr[3]与arr[4] {6,2,9,1,9}
+	第一轮所有元素{6,9,2,9,1}已经都参与了比较,结束。
+	第一轮的结果:第“一”最大值9沉底(本次是后面的9沉底),即到{6,2,9,1,9}元素的最右边
+
+第二轮:
+	第1次,arr[0]与arr[1],6>2成立,不满足目标要求,交换arr[0]与arr[1] {2,6,9,1,9}
+	第2次,arr[1]与arr[2],6>9不成立,满足目标要求,不交换
+	第3次:arr[2]与arr[3],9>1成立,不满足目标要求,交换arr[2]与arr[3] {2,6,1,9,9}
+	第二轮未排序的所有元素 {6,2,9,1}已经都参与了比较,结束。
+	第二轮的结果:第“二”最大值9沉底(本次是前面的9沉底),即到{2,6,1,9}元素的最右边
+第三轮:
+	第1次,arr[0]与arr[1],2>6不成立,满足目标要求,不交换
+	第2次,arr[1]与arr[2],6>1成立,不满足目标要求,交换arr[1]与arr[2] {2,1,6,9,9}
+	第三轮未排序的所有元素{2,6,1}已经都参与了比较,结束。
+	第三轮的结果:第三最大值6沉底,即到 {2,1,6}元素的最右边
+第四轮:
+	第1次,arr[0]与arr[1],2>1成立,不满足目标要求,交换arr[0]与arr[1] {1,2,6,9,9}
+	第四轮未排序的所有元素{2,1}已经都参与了比较,结束。
+	第四轮的结果:第四最大值2沉底,即到{1,2}元素的最右边
+*/
+public class Test19BubbleSort{
+    public static void main(String[] args){
+        int[] arr = {6,9,2,9,1};
+
+        //目标:从小到大
+        //冒泡排序的轮数 = 元素的总个数 - 1
+        //轮数是多轮,每一轮比较的次数是多次,需要用到双重循环,即循环嵌套
+        //外循环控制 轮数,内循环控制每一轮的比较次数和过程
+        for(int i=1; i<arr.length; i++){ //循环次数是arr.length-1次/轮
+			/*
+			假设arr.length=5
+			i=1,第1轮,比较4次
+				arr[0]与arr[1]
+				arr[1]与arr[2]
+				arr[2]与arr[3]
+				arr[3]与arr[4]
+
+				arr[j]与arr[j+1],int j=0;j<4; j++
+
+			i=2,第2轮,比较3次
+				arr[0]与arr[1]
+				arr[1]与arr[2]
+				arr[2]与arr[3]
+
+				arr[j]与arr[j+1],int j=0;j<3; j++
+
+			i=3,第3轮,比较2次
+				arr[0]与arr[1]
+				arr[1]与arr[2]
+
+				arr[j]与arr[j+1],int j=0;j<2; j++
+			i=4,第4轮,比较1次
+				arr[0]与arr[1]
+
+				arr[j]与arr[j+1],int j=0;j<1; j++
+
+				int j=0; j<arr.length-i; j++
+			*/
+            for(int j=0; j<arr.length-i; j++){
+                //希望的是arr[j] < arr[j+1]
+                if(arr[j] > arr[j+1]){
+                    //交换arr[j]与arr[j+1]
+                    int temp = arr[j];
+                    arr[j] = arr[j+1];
+                    arr[j+1] = temp;
+                }
+            }
+        }
+
+        //完成排序,遍历结果
+        for(int i=0; i<arr.length; i++){
+            System.out.print(arr[i]+"  ");
+        }
+    }
+}

+ 34 - 0
JavaSE/day05/src/main/java/com/sf/Test19BubbleSort2.java

@@ -0,0 +1,34 @@
+package com.sf;
+
+/*
+思考:冒泡排序是否可以优化
+*/
+class Test19BubbleSort2{
+    public static void main(String[] args) {
+        int[] arr = {1, 3, 5, 7, 9};
+
+        //从小到大排序
+        for (int i = 0; i < arr.length - 1; i++) {
+            boolean flag = true;//假设数组已经是有序的
+            for (int j = 0; j < arr.length - 1 - i; j++) {
+                //希望的是arr[j] < arr[j+1]
+                if (arr[j] > arr[j + 1]) {
+                    //交换arr[j]与arr[j+1]
+                    int temp = arr[j];
+                    arr[j] = arr[j + 1];
+                    arr[j + 1] = temp;
+
+                    flag = false;//如果元素发生了交换,那么说明数组还没有排好序
+                }
+            }
+            if (flag) {
+                break;
+            }
+        }
+
+        //完成排序,遍历结果
+        for (int i = 0; i < arr.length; i++) {
+            System.out.print(arr[i] + "  ");
+        }
+    }
+}

+ 88 - 0
JavaSE/day05/src/main/java/com/sf/Test2.java

@@ -0,0 +1,88 @@
+package com.sf;
+
+import javax.naming.InsufficientResourcesException;
+public class Test2 {
+    public static void main(String[] args) {
+        String[] class1 = {"qq","ww","ee"};
+        String[] class2 = {"rr","tt","yy"};
+        String[] class3 = {"uu","ii","oo"};
+
+        /**
+         * 声明二维数组
+         * 1、元素的数据类型[][] 二维数组的名称;
+         * 2、元素的数据类型  二维数组名[][];
+         * 3、元素的数据类型[]  二维数组名[];
+         */
+        String[][] classTwo;   //推荐
+        String classTwo2[][];
+        String[] classTwo3[];
+
+        /**
+         * 将三个班级,每个班级中的三个同学  都放在一个二维数组里
+         * [][]
+         *      第一个中括号代表的是 二维数组中的第一个元素
+         *      第二个中括号代表的是  二维数组中的第一个元素(一维数组)中的每一个元素
+         */
+        String[][] className = {{"qq","ww","ee"},{"rr","tt","yy"},{"uu","ii","oo"}};
+        for (int k = 0; k<className.length;k++){
+            System.out.println("循环次数"+k);
+            for (int z = 0;z < className[k].length;z++){
+                String s = className[k][z];
+                System.out.println(s);
+                System.out.println("第一个元素的长度"+ className[k].length);
+
+            }
+        }
+
+        String name = className[0][0];
+//        System.out.println("qq"+name);
+//        System.out.println("yy===>"+className[1][2]);
+
+        String[][] className2 = new String[][]{{"qq","ww","ee"},{"rr","tt","yy"},{"uu","ii","oo"}};
+        String[][] className3;
+        className3 =  new String[][]{{"qq","ww","ee"},{"rr","tt","yy"},{"uu","ii","oo"}};
+
+        /**
+         * [1]  : 二维数组中 包含2个一维数组    行
+         * [2]  : 每个一维数组中的元素个数为3个  列
+         */
+        String[][]  arr = new String[2][3];
+        arr[0][0] = "张三0";
+        arr[0][1] = "张三1";
+        arr[0][2] = "张三2";
+//        第二个一维数组赋值
+        arr[1][0] = "张四0";
+        arr[1][1] = "张四1";
+        arr[1][2] = "张四2";
+
+        System.out.println(arr[1][1]);
+        /**
+         * 获取二维数组的长度    获取二维数组中一维数组(第一个元素)的的长度
+         */
+        int length = arr.length;
+        int length1 = arr[0].length;
+
+        System.out.println(length);
+        System.out.println("================="+length1);
+
+
+        /**
+         * 二维数组的遍历
+         */
+        String[][] name1 = new String[][]{{"qq","ww","ee"},{"rr","tt","yy"},{"uu","ii","oo"}};
+
+
+
+        int[][] xs = {{12,14,24},{23,18,35},{33,48,25},{27,28,35}};
+        int sum = 0;
+        int count = 0; //数组长度
+        for (int q = 0 ;q<xs.length;q++){
+            for (int e = 0 ;e <xs[q].length;e++){
+                sum+=xs[q][e];
+                count++;
+            }
+        }
+        System.out.println("总和为"+sum);
+        System.out.println("平均值"+sum/count);
+    }
+}

+ 46 - 0
JavaSE/day05/src/main/java/com/sf/Test3.java

@@ -0,0 +1,46 @@
+package com.sf;
+
+/**
+ * 杨辉三角
+ */
+public class Test3 {
+    /**
+     * @author 爱扣钉-陈晨
+     * @create 10:11
+     */
+        public static void main(String[] args) {
+
+            //1. 动态初始化的方式创建二维数组
+            int[][] yangHui = new int[10][];
+
+            for (int i = 0; i < yangHui.length; i++) {
+                yangHui[i] = new int[i + 1];
+
+                //2. 给数组元素赋值
+                // 2.1 给外层数组元素中的首元素和末元素赋值
+                yangHui[i][0] = yangHui[i][i] = 1;
+
+                //2.2 给外层数组元素中的非首元素和非末元素赋值(难)
+                //if(i > 1){ //从 i == 2 开始执行
+                for(int j = 1;j < yangHui[i].length - 1;j++){
+                    //非首元素和非末元素的角标范围
+                    yangHui[i][j] = yangHui[i-1][j-1] + yangHui[i-1][j];
+
+                }
+                //}
+            }
+
+
+            //3. 遍历二维数组
+            for (int i = 0; i < yangHui.length; i++) {
+                for (int j = 0; j < yangHui[i].length; j++) {
+                    System.out.print(yangHui[i][j] + "\t");
+                }
+
+                System.out.println();
+            }
+
+        }
+}
+
+

+ 26 - 0
JavaSE/day05/src/main/java/com/sf/TestArrayOrderSearch.java

@@ -0,0 +1,26 @@
+package com.sf;
+
+/**
+ * 顺序查找
+ */
+public class TestArrayOrderSearch {
+    //查找value第一次在数组中出现的index
+    public static void main(String[] args){
+        int[] arr = {4,5,6,1,9};
+        int value = 1;
+        int index = -1;
+
+        for(int i=0; i<arr.length; i++){
+            if(arr[i] == value){
+                index = i;
+                break;
+            }
+        }
+
+        if(index==-1){
+            System.out.println(value + "不存在");
+        }else{
+            System.out.println(value + "的下标是" + index);
+        }
+    }
+}

+ 38 - 0
JavaSE/day05/src/main/java/com/sf/TestArrayReverse1.java

@@ -0,0 +1,38 @@
+package com.sf;
+
+/**
+ * 数组的反转
+ */
+public class TestArrayReverse1 {
+    public static void main(String[] args) {
+        int[] arr = {1,2,3,4,5};
+        System.out.println("反转之前:");
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println(arr[i]);
+        }
+
+        //反转
+         /*
+        思路:首尾对应位置的元素交换
+        (1)确定交换几次
+           次数 = 数组.length / 2
+        (2)谁和谁交换
+        for(int i=0; i<次数; i++){
+             int temp = arr[i];
+             arr[i] = arr[arr.length-1-i];
+             arr[arr.length-1-i] = temp;
+        }
+         */
+        for(int i=0; i<arr.length/2; i++){
+            int temp = arr[i];
+            arr[i] = arr[arr.length-1-i];
+            arr[arr.length-1-i] = temp;
+        }
+
+        System.out.println("反转之后:");
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println(arr[i]);
+        }
+    }
+
+}

+ 25 - 0
JavaSE/day05/src/main/java/com/sf/TestArrayReverse2.java

@@ -0,0 +1,25 @@
+package com.sf;
+
+public class TestArrayReverse2 {
+    public static void main(String[] args) {
+        int[] arr = {1,2,3,4,5};
+        System.out.println("反转之前:");
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println(arr[i]);
+        }
+
+        //反转
+        //左右对称位置交换
+        for(int left=0,right=arr.length-1; left<right; left++,right--){
+            //首  与  尾交换
+            int temp = arr[left];
+            arr[left] = arr[right];
+            arr[right] = temp;
+        }
+
+        System.out.println("反转之后:");
+        for (int i = 0; i < arr.length; i++) {
+            System.out.println(arr[i]);
+        }
+    }
+}

BIN
JavaSE/day05/target/classes/com/sf/BinFind.class


BIN
JavaSE/day05/target/classes/com/sf/Test1.class


BIN
JavaSE/day05/target/classes/com/sf/Test19BubbleSort.class


BIN
JavaSE/day05/target/classes/com/sf/Test19BubbleSort2.class


BIN
JavaSE/day05/target/classes/com/sf/Test2.class


BIN
JavaSE/day05/target/classes/com/sf/Test3.class


BIN
JavaSE/day05/target/classes/com/sf/TestArrayOrderSearch.class


BIN
JavaSE/day05/target/classes/com/sf/TestArrayReverse1.class


BIN
JavaSE/day05/target/classes/com/sf/TestArrayReverse2.class


BIN
JavaSE/day05/target/classes/com/sf/TestYear.class


BIN
JavaSE/day05/target/classes/com/sf/YEARTest.class


+ 16 - 0
JavaSE/day06/pom.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.sf</groupId>
+    <artifactId>day06</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 18 - 0
JavaSE/day06/src/main/java/com/sf/City.java

@@ -0,0 +1,18 @@
+package com.sf;
+
+public class City extends Country{
+    String name;
+
+    public void print() {
+        name = "Shanghai";
+        super.print();      //调用父类的方法
+        System.out.println(this.name);  //上海
+        System.out.println(super.name);    //China方法
+        System.out.println(name);
+    }
+
+    public static void main(String[] args) {
+        City city = new City();
+        city.print();
+    }
+}

+ 13 - 0
JavaSE/day06/src/main/java/com/sf/Country.java

@@ -0,0 +1,13 @@
+package com.sf;
+
+/**
+ * 国家类
+ */
+public class Country{
+    String name;
+    public void  print(){
+        System.out.println("这是super的方法");
+        name = "China方法";
+    }
+
+}

+ 17 - 0
JavaSE/day06/src/main/java/com/sf/Huashan.java

@@ -0,0 +1,17 @@
+package com.sf;
+
+/**
+ * 华山类
+ */
+public class Huashan {
+//    掌门
+    private String zhangmen;
+
+    public void liangong(){
+        System.out.println("这是练功行为");
+    }
+
+    public void jingong(){
+        System.out.println("出剑");
+    }
+}

+ 12 - 0
JavaSE/day06/src/main/java/com/sf/Jianzong.java

@@ -0,0 +1,12 @@
+package com.sf;
+
+/**
+ * 剑宗类
+ */
+public class Jianzong extends Huashan{
+
+    public void liangong(){
+        System.out.println("练剑为主,练气为辅");
+    }
+
+}

+ 31 - 0
JavaSE/day06/src/main/java/com/sf/Person.java

@@ -0,0 +1,31 @@
+package com.sf;
+
+public class Person {
+    private String name ="凤姐";
+    private int age = 20;
+
+    public Person() {
+        System.out.println("父类无参");
+    }
+
+    public Person(String name , int age){
+        this.name = name ;
+        this.age = age ;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public int getAge() {
+        return age;
+    }
+
+    public void setAge(int age) {
+        this.age = age;
+    }
+}

+ 11 - 0
JavaSE/day06/src/main/java/com/sf/Qizong.java

@@ -0,0 +1,11 @@
+package com.sf;
+
+/**
+ * 气宗类
+ */
+public class Qizong extends Huashan{
+
+    public void liangong(){
+        System.out.println("练气为主 , 练剑为辅");
+    }
+}

+ 35 - 0
JavaSE/day06/src/main/java/com/sf/Student.java

@@ -0,0 +1,35 @@
+package com.sf;
+
+public class Student extends Person{
+    private double score = 100;
+    public Student() {
+        //super(); // 调用父类无参构造方法,默认就存在,可以不写,必须再第一行
+        System.out.println("子类无参");
+    }
+
+    public Student(String name , int age,double score) {
+        super(name ,age);// 调用父类有参构造方法,初始化name和age
+        this.score = score;
+        System.out.println("子类有参");
+    }
+
+    public double getScore() {
+        return score;
+    }
+
+    public void setScore(double score) {
+
+        this.score = score;
+    }
+
+
+    public static void main(String[] args) {
+//        Student student = new Student();  //对象的创建
+        // 调用子类有参数构造方法
+        Student s2 = new Student("张三",20,99);   //属性的赋值
+        System.out.println(s2.getScore()); // 99
+        System.out.println(s2.getName()); // 输出 张三
+        System.out.println(s2.getAge()); // 输出 20
+    }
+}
+

+ 12 - 0
JavaSE/day06/src/main/java/com/sf/Test.java

@@ -0,0 +1,12 @@
+package com.sf;
+
+public class Test {
+    public static void main(String[] args) {
+        Jianzong jianzong = new Jianzong();
+        Qizong qizong = new Qizong();
+        jianzong.liangong();
+        qizong.liangong();
+        jianzong.jingong();
+        qizong.jingong();
+    }
+}

+ 16 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/Father.java

@@ -0,0 +1,16 @@
+package com.sf.codeBlock;
+
+public class Father {
+    {
+        System.out.println("(2)父类的非静态代码块");
+    }
+
+    static{
+        System.out.println("(1)父类的静态代码块");
+    }
+
+    Father(){
+        System.out.println("(3)父类的无参构造");
+    }
+
+}

+ 16 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/Son.java

@@ -0,0 +1,16 @@
+package com.sf.codeBlock;
+
+public class Son extends Father{
+    {
+        System.out.println("(5)子类的非静态代码块");
+    }
+
+    static{
+        System.out.println("(4)子类的静态代码块");
+    }
+
+
+    Son(){
+        System.out.println("(6)子类的无参构造");
+    }
+}

+ 20 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/Test1.java

@@ -0,0 +1,20 @@
+package com.sf.codeBlock;
+
+import com.sf.static2.Student2;
+
+/**
+ * 局部代码块
+ * 必须写在方法里  {   代码体   }
+ * 局部代码块  声明的变量只能在代码块的内部进行使用
+ */
+public class Test1 {
+
+    public static void main(String[] args) {
+//        代码块
+        {
+            int a  =1;
+            System.out.println(a);
+        }
+        System.out.println();
+    }
+}

+ 18 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/Test2.java

@@ -0,0 +1,18 @@
+package com.sf.codeBlock;
+
+/**
+ * 静态代码块
+ * static{  代码体 }
+ * 静态代码块必须放在类下
+ */
+public class Test2 {
+   private static int a;
+    static {
+         a =1;
+        System.out.println(a);
+    }
+
+    public static void main(String[] args) {
+        System.out.println(a);
+    }
+}

+ 29 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/Test3.java

@@ -0,0 +1,29 @@
+package com.sf.codeBlock;
+
+/**
+ * 实例(构造)代码块
+ */
+public class Test3 {
+    private String name;
+    {
+        System.out.println("实例代码块执行...");
+        name = "张三";
+    }
+
+    // 构造器
+    public Test3(){
+        System.out.println("无参构造方法执行...");
+    }
+
+    // 有参数构造器
+    public Test3(String name){
+        System.out.println("有参构造方法执行...");
+        this.name = name;
+    }
+
+    public static void main(String[] args) {
+        Test3 t1 = new Test3();
+        Test3 t2 = new Test3("李四");
+        System.out.println(t1.name + t2.name);
+    }
+}

+ 7 - 0
JavaSE/day06/src/main/java/com/sf/codeBlock/TestSonCode.java

@@ -0,0 +1,7 @@
+package com.sf.codeBlock;
+
+public class TestSonCode {
+    public static void main(String[] args) {
+        Son son = new Son();
+    }
+}

+ 20 - 0
JavaSE/day06/src/main/java/com/sf/final1/A.java

@@ -0,0 +1,20 @@
+package com.sf.final1;
+
+import javax.print.attribute.standard.PrinterURI;
+import java.sql.SQLOutput;
+
+public  class A {
+
+     String bb;
+
+    public A() {
+    }
+
+    public A(String bb) {
+        this.bb = bb;
+    }
+
+    public final   void method1(){
+        System.out.println("aaa == final");
+    }
+}

+ 12 - 0
JavaSE/day06/src/main/java/com/sf/final1/B.java

@@ -0,0 +1,12 @@
+package com.sf.final1;
+
+
+
+public class B extends A{
+    private static  final int AAAAAAAA= 1;  //常量  显示赋值   常量的变量名都是大写   多个单词组合的情况下 _ 例如  MAX_COUNT
+    public static void main(String[] args) {
+         final   String a;
+         a = "aa";
+    }
+
+}

+ 21 - 0
JavaSE/day06/src/main/java/com/sf/static2/Person.java

@@ -0,0 +1,21 @@
+package com.sf.static2;
+
+public class Person {
+    public static void method1(){
+        System.out.println("person ==>这是方法1");
+    }
+
+    public static void method2(){
+        System.out.println("person ==>这是方法2");
+    }
+
+    public void method3(){
+        System.out.println("person ==>这是方法3(非静态的)");
+    }
+
+
+    public static void main(String[] args) {
+        Person person = new Person();
+         person.method3();
+    }
+}

+ 39 - 0
JavaSE/day06/src/main/java/com/sf/static2/Student.java

@@ -0,0 +1,39 @@
+package com.sf.static2;
+
+public class Student {
+    //实例变量
+    String name;    //公开是
+    int age;
+    //类变量
+    static String major;//专业    静态的
+
+    public Student() {
+    }
+
+    public Student(String name, int age) {
+        this.name = name;
+        this.age = age;
+    }
+
+    @Override
+    public String toString() {
+        return "Student{" +
+                "name='" + name + '\'' +
+                ", age=" + age +
+                ", major='" + major + '\'' +
+                '}';
+    }
+
+    public static void main(String[] args) {
+        Student c1 = new Student("小小",36);
+        c1.major = "计算机科学与技术";
+
+        Student c2 = new Student("大大",66);
+
+        System.out.println(c1);  //Student{name='小小', age=36, major='计算机科学与技术'}
+        System.out.println(c2);   //Student{name='大大', age=66, major='计算机科学与技术'}
+
+        System.out.println(major);   //计算机科学与技术
+    }
+
+}

+ 8 - 0
JavaSE/day06/src/main/java/com/sf/static2/Student2.java

@@ -0,0 +1,8 @@
+package com.sf.static2;
+
+public class Student2 extends Person{
+
+    public static void method2(){
+        System.out.println("Son.m2");
+    }
+}

+ 9 - 0
JavaSE/day06/src/main/java/com/sf/static2/TestStatic.java

@@ -0,0 +1,9 @@
+package com.sf.static2;
+
+public class TestStatic {
+    public static void main(String[] args) {
+//        类名.方法名
+        Person.method1();
+        Person.method2();
+    }
+}

+ 15 - 0
JavaSE/day06/src/main/java/com/sf/static2/TestStaticMethod.java

@@ -0,0 +1,15 @@
+package com.sf.static2;
+
+public class TestStaticMethod {
+    public static void main(String[] args) {
+        Person.method1();
+        Student2.method2();//继承静态方法
+        Student2.method2();//执行Father类中的m1
+
+        Person person = new Student2();
+        person.method3();
+
+        Person.method2();
+        Student2.method2();
+    }
+}

BIN
JavaSE/day06/target/classes/com/sf/City.class


BIN
JavaSE/day06/target/classes/com/sf/Country.class


BIN
JavaSE/day06/target/classes/com/sf/Huashan.class


BIN
JavaSE/day06/target/classes/com/sf/Jianzong.class


BIN
JavaSE/day06/target/classes/com/sf/Person.class


BIN
JavaSE/day06/target/classes/com/sf/Qizong.class


BIN
JavaSE/day06/target/classes/com/sf/Student.class


BIN
JavaSE/day06/target/classes/com/sf/TTT.class


BIN
JavaSE/day06/target/classes/com/sf/Test.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/Father.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/Son.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/Test1.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/Test2.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/Test3.class


BIN
JavaSE/day06/target/classes/com/sf/codeBlock/TestSonCode.class


BIN
JavaSE/day06/target/classes/com/sf/final1/A.class


BIN
JavaSE/day06/target/classes/com/sf/final1/B.class


BIN
JavaSE/day06/target/classes/com/sf/static2/Person.class


BIN
JavaSE/day06/target/classes/com/sf/static2/Student.class


BIN
JavaSE/day06/target/classes/com/sf/static2/Student2.class


BIN
JavaSE/day06/target/classes/com/sf/static2/TestStatic.class


BIN
JavaSE/day06/target/classes/com/sf/static2/TestStaticMethod.class


+ 11 - 0
JavaSE/day13/day13.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="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 30 - 0
JavaSE/day13/src/com/lc/day13/date03/TestDate.java

@@ -0,0 +1,30 @@
+package com.lc.day13.date03;
+
+import java.util.Date;
+
+/**
+ * ClassName: TestDate
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 13:41
+ * @Version 1.0
+ */
+public class TestDate {
+
+    public static void main(String[] args) {
+        //Date
+        Date date = new Date();
+
+        System.out.println(date);
+
+        //Date(long date)
+        Date date1 = new Date(1000*60*60*24); // 1970-01-01 08:00:00
+        System.out.println(date1);
+
+
+        //获取毫秒值 从1970开始
+        long time = date1.getTime();
+        System.out.println(time);
+    }
+
+}

+ 35 - 0
JavaSE/day13/src/com/lc/day13/date04/Test01.java

@@ -0,0 +1,35 @@
+package com.lc.day13.date04;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+/**
+ * ClassName: Test01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 13:50
+ * @Version 1.0
+ */
+public class Test01 {
+
+    public static void main(String[] args) throws ParseException {
+        //字符串  - 时间
+        String s1 =  "2023-01-01 12:00:00";
+
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+
+        //解析为时间
+        Date parse = sdf.parse(s1);
+
+        System.out.println(parse);
+
+        // 时间  字符串
+        Date date = new Date();
+
+        String format = sdf.format(date);
+
+        System.out.println(format);
+
+    }
+}

+ 58 - 0
JavaSE/day13/src/com/lc/day13/date04/Test02.java

@@ -0,0 +1,58 @@
+package com.lc.day13.date04;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+
+/**
+ * ClassName: Test01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 13:50
+ * @Version 1.0
+ */
+public class Test02 {
+
+    public static void main(String[] args) throws ParseException {
+        //当前时间 以及一个月之后的时间
+        Calendar ins = Calendar.getInstance();
+
+        //add 加减
+        ins.add(Calendar.MONTH,1);
+        ins.add(Calendar.MONTH,-1);
+
+        //+1
+        ins.add(Calendar.YEAR,1);
+
+        //获取年份 get
+        int y1 = ins.get(Calendar.YEAR);
+        int y2 = ins.get(1);
+
+        System.out.println(y1);
+        System.out.println(y2);
+
+        //月份
+        int m = ins.get(Calendar.MONTH);
+        System.out.println(m); // 0 +
+
+        //日期
+        int d = ins.get(Calendar.DAY_OF_MONTH);
+        System.out.println(d);
+
+        System.out.println(y1+"年"+(m+1)+"月"+d+"日");
+
+
+
+        //设置生日
+        Calendar bir = Calendar.getInstance();
+
+        bir.set(Calendar.YEAR,1999);
+        bir.set(Calendar.MONTH,0);
+        bir.set(Calendar.DAY_OF_MONTH,1);
+
+        //时间
+        Date time = bir.getTime();
+        System.out.println(time);
+    }
+}

+ 54 - 0
JavaSE/day13/src/com/lc/day13/date05/Test01.java

@@ -0,0 +1,54 @@
+package com.lc.day13.date05;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.LocalTime;
+import java.time.Month;
+
+/**
+ * ClassName: Test01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 15:16
+ * @Version 1.0
+ */
+public class Test01 {
+
+    public static void main(String[] args) {
+        // LocalDate  日期
+        LocalDate localDate = LocalDate.now();
+        System.out.println(localDate);
+        
+        // of
+        LocalDate localDate1 = LocalDate.of(2023, 12, 31);
+        System.out.println(localDate1);
+
+        // LocalTime  时间
+        LocalTime localTime = LocalTime.now();
+        System.out.println(localTime);
+
+
+        // LocalDateTime  日期时间
+        LocalDateTime localDateTime = LocalDateTime.now();
+        System.out.println(localDateTime);
+
+        int year = localDateTime.getYear();
+        int month = localDateTime.getMonthValue();
+        int dayOfMonth = localDateTime.getDayOfMonth();
+        System.out.println(year+"-"+month+"-"+dayOfMonth);
+
+        //设置
+        LocalDateTime localDateTime1 = localDateTime.withYear(2022).withMonth(12).withDayOfMonth(31);
+
+        System.out.println(localDateTime1);
+
+        //减
+        LocalDateTime localDateTime2 = localDateTime.minusYears(1);
+        System.out.println(localDateTime2);
+
+        //加
+        LocalDateTime localDateTime3 = localDateTime.plusYears(10);
+        System.out.println(localDateTime3);
+
+    }
+}

+ 41 - 0
JavaSE/day13/src/com/lc/day13/date05/Test02.java

@@ -0,0 +1,41 @@
+package com.lc.day13.date05;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.LocalTime;
+import java.time.format.DateTimeFormatter;
+import java.time.temporal.TemporalAccessor;
+
+/**
+ * ClassName: Test01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 15:16
+ * @Version 1.0
+ */
+public class Test02 {
+
+    public static void main(String[] args) {
+        //时间转换
+        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+
+        //当前时间
+        LocalDateTime now = LocalDateTime.now();
+
+        //转换 字符串
+        String format = dtf.format(now);
+
+        System.out.println(format);
+
+        //字符串 format
+        TemporalAccessor parse = dtf.parse(format);
+        // 时间
+        LocalDateTime from = LocalDateTime.from(parse);
+
+        System.out.println(from);
+
+        //LocalDateTime 时间类提供的
+        LocalDateTime parse1 = LocalDateTime.parse(format, dtf);
+        System.out.println(parse1);
+    }
+}

+ 23 - 0
JavaSE/day13/src/com/lc/day13/integer06/TestInteger.java

@@ -0,0 +1,23 @@
+package com.lc.day13.integer06;
+
+/**
+ * ClassName: TestInteger
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 16:14
+ * @Version 1.0
+ */
+public class TestInteger {
+
+    public static void main(String[] args) {
+
+        Integer i1 = 100;
+
+        int i2 = 100;
+
+
+
+
+
+    }
+}

+ 29 - 0
JavaSE/day13/src/com/lc/day13/integer06/TestInteger1.java

@@ -0,0 +1,29 @@
+package com.lc.day13.integer06;
+
+/**
+ * ClassName: TestInteger
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 16:14
+ * @Version 1.0
+ */
+public class TestInteger1 {
+
+    public static void main(String[] args) {
+        //构造
+        //Integer i1 = new Integer(1);
+        //Integer s = new Integer("123");
+
+        Integer i1 = 1000;
+
+        int i = i1.compareTo(1001);
+        System.out.println(i);
+
+        //比较
+        int compare = Integer.compare(10, 20);
+        System.out.println(compare);
+
+        //
+
+    }
+}

+ 31 - 0
JavaSE/day13/src/com/lc/day13/integer06/TestInteger2.java

@@ -0,0 +1,31 @@
+package com.lc.day13.integer06;
+
+/**
+ * ClassName: TestInteger
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 16:14
+ * @Version 1.0
+ */
+public class TestInteger2 {
+
+    public static void main(String[] args) {
+        //int
+        int a =10;
+        //integer
+        Integer b = 20;
+
+        int c = b;
+
+        Integer d = a;
+
+        //自动装箱
+        Integer e = 20;
+        //自动拆箱
+        int i = e + 10;
+
+        //自动装箱
+        Integer i1 = e + 30;
+
+    }
+}

+ 51 - 0
JavaSE/day13/src/com/lc/day13/integer06/TestInteger3.java

@@ -0,0 +1,51 @@
+package com.lc.day13.integer06;
+
+/**
+ * ClassName: TestInteger
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 16:14
+ * @Version 1.0
+ */
+public class TestInteger3 {
+
+    public static void main(String[] args) {
+        //基本  包装类  字符串
+
+        //基本  包装类
+        int a = 10;
+        Integer b = a;  //方式1
+        Integer i = Integer.valueOf(a); //方式2
+
+        //包装类  基本
+        Integer c = 10;
+
+        int d = c; //方式1
+        int i1 = c.intValue(); //方式2
+
+        //基本  字符串
+        int e = 10;
+        String str = e + ""; //方式1
+        String str1 = String.valueOf(e); //方式2
+
+        //字符串 基本
+        String f = "10";
+        int j = Integer.parseInt(f); //方式1
+        //double v = Double.parseDouble("10");
+        //int j1 = new Integer(f); //方式2
+
+
+        //字符串 包装类
+        String g = "10";
+        Integer k = Integer.valueOf(g);
+
+
+        //包装类 字符串
+        Integer l = 10;
+
+        String string = l.toString();
+        String s = l + ""; //拆箱
+        String s1 = String.valueOf(l);//装箱
+
+    }
+}

+ 50 - 0
JavaSE/day13/src/com/lc/day13/integer06/TestInteger4.java

@@ -0,0 +1,50 @@
+package com.lc.day13.integer06;
+
+/**
+ * ClassName: TestInteger
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 16:14
+ * @Version 1.0
+ */
+public class TestInteger4 {
+
+    public static void main(String[] args) {
+       //Integer a = 10;
+
+       //private final int value;
+
+//        Integer a = 1;
+//        Integer b = 1;
+//        System.out.println(a == b);// T
+//
+//        Integer i = 128; //Integer i = new Integer(128);
+//        Integer j = 128;
+//        System.out.println(i == j);// F
+//
+//        Integer m = new Integer(1);
+//        Integer n = 1;
+//        System.out.println(m == n);// F
+//
+//        Integer x = new Integer(1);
+//        Integer y = new Integer(1);
+//        System.out.println(x == y);// F
+
+//        Double d1 = 1.0;
+//        Double d2 = 1.0;
+//        System.out.println(d1==d2);// F
+
+//        Integer i = 1000;
+//        double j = 1000;
+//        System.out.println(i==j); // 拆箱
+
+//        Integer i = 1000;
+//        int j = 1000;
+//        System.out.println(i==j);
+//
+//        Integer i = 1;
+//        Double d = 1.0;
+//        System.out.println(i==d);
+
+    }
+}

+ 48 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString.java

@@ -0,0 +1,48 @@
+package com.lc.day13.str01;
+
+import java.io.UnsupportedEncodingException;
+import java.util.Arrays;
+
+/**
+ * ClassName: String
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:22
+ * @Version 1.0
+ */
+public class TestString {
+
+    public static void main(String[] args) throws UnsupportedEncodingException {
+        //构造
+        String s = new String("123"); //创建两个值
+
+        String s1 = new String();
+
+        //编码
+        byte[] bytes = {-28, -72, -83, -27, -101, -67}; // 中国 utf-8
+
+        //解码
+        String s2 = new String(bytes , "utf-8");
+
+        //字节
+        System.out.println(s2);
+
+        //编码
+        byte[] bytes1 = "中国".getBytes("GBK");
+        //[-42, -48, -71, -6]
+        System.out.println(Arrays.toString(bytes1));
+
+        //汉字
+        // gbk 编码 一个汉字占2个字节
+        // utf-8 编码 一个汉字占3个字节
+
+        //文件 java
+
+        char[] chars = {'中','国'};
+        String s3 = new String(chars);
+
+        System.out.println(s3);
+
+        String s4 = "中国";
+    }
+}

+ 39 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString01.java

@@ -0,0 +1,39 @@
+package com.lc.day13.str01;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: TestString01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:33
+ * @Version 1.0
+ */
+public class TestString01 {
+    /*
+     **字符串 -->  字符数组:**
+    - public char[] toCharArray():将字符串中的全部字符存放在一个字符数组中的方法。
+    - public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin):提供了将指定索引范围内的字符串存放到数组中的方法。
+    **字符串 --> 字节数组:(编码)**
+    - public byte[] getBytes() :使用默认字符集将 String 转为 byte 序列,结果存储到一个新的 byte 数组中。
+    - public byte[] getBytes(String charsetName) :使用指定字符集。
+     **字节数组 --> 字符串:(解码)**
+    - String(byte[]):通过默认字符集解码 byte 数组,返回 String。
+    - String(byte[],int offset,int length) :用字节数组的一部分,起始位置和长度返回String
+    - String(byte[], String charsetName ) 按照指定的字符,解码byte字节数组。
+     */
+    public static void main(String[] args) {
+        String s1 = "helloworld";
+        //将字符串中的全部字符存放在一个字符数组中
+        char[] charArray = s1.toCharArray();
+        System.out.println(Arrays.toString(charArray));
+
+        //String s = new String(charArray , 0 ,10);
+        char[] arr = new char[2];
+        s1.getChars(0,2,arr, 0);
+
+        System.out.println(arr);
+    }
+
+
+}

+ 40 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString02.java

@@ -0,0 +1,40 @@
+package com.lc.day13.str01;
+
+import java.util.Arrays;
+
+/**
+ * ClassName: TestString01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:33
+ * @Version 1.0
+ */
+public class TestString02 {
+
+    public static void main(String[] args) {
+        //boolean isEmpty():字符串是否为空
+        String str = "  ";
+        //空格处理
+        System.out.println(str.isEmpty());
+
+        //trim
+        String trim = str.trim();
+        System.out.println(trim);
+
+        //isBlank
+        //boolean isBlank():字符串是否为空或仅包含空格
+        boolean blank = str.isBlank();
+        System.out.println(blank);
+
+        //equalsIgnoreCase
+
+        String s1 = "abc";
+        String s2 = "Abc";
+        System.out.println(s1.equalsIgnoreCase(s2));
+
+        //验证码  大小写  ABCD  abcd
+
+    }
+
+
+}

+ 30 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString03.java

@@ -0,0 +1,30 @@
+package com.lc.day13.str01;
+
+/**
+ * ClassName: TestString01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:33
+ * @Version 1.0
+ */
+public class TestString03 {
+
+    public static void main(String[] args) {
+        //int indexOf(xx):从前往后找当前字符串中xx,即如果有返回第一次出现的下标,要是没有返回-1
+        // 图片  1.png 截取
+
+        String str = "1.png";
+        int i = str.indexOf(".");
+        System.out.println(i);
+        // "2.3.4.51.png";
+
+        String str2 = "2.3.4.51.png";
+        // lastIndexOf
+
+        int i1 = str2.lastIndexOf(".");
+        System.out.println(i1);
+
+    }
+
+
+}

+ 39 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString04.java

@@ -0,0 +1,39 @@
+package com.lc.day13.str01;
+
+/**
+ * ClassName: TestString01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:33
+ * @Version 1.0
+ */
+public class TestString04 {
+
+    public static void main(String[] args) {
+        //int indexOf(xx):从前往后找当前字符串中xx,即如果有返回第一次出现的下标,要是没有返回-1
+        // 图片  1.png 截取
+
+        String str = "1.png";
+        int i = str.indexOf(".");
+        System.out.println(i);
+        // "2.3.4.51.png";
+
+        String str2 = "2.3.4.51.png";
+        // lastIndexOf
+
+        int i1 = str2.lastIndexOf(".");
+        System.out.println(i1);
+
+        //String substring(int beginIndex) :返回一个新的字符串
+        String substring = str2.substring(i1);
+        System.out.println(substring);
+
+        //截取中间部分
+        String s4 = "123abc456";
+        String s5 = s4.substring(3, 6);
+        System.out.println(s5);
+
+    }
+
+
+}

+ 46 - 0
JavaSE/day13/src/com/lc/day13/str01/TestString05.java

@@ -0,0 +1,46 @@
+package com.lc.day13.str01;
+
+import java.util.UUID;
+
+/**
+ * ClassName: TestString01
+ *
+ * @Author 爱扣钉-陈晨
+ * @Create 2024/1/9 9:33
+ * @Version 1.0
+ */
+public class TestString05 {
+
+    public static void main(String[] args) {
+        //char charAt(index):返回[index]位置的字符
+        //char[] toCharArray(): 将此字符串转换为一个新的字符数组返回
+
+        String str = "hello";
+
+        char c = str.charAt(0);
+        System.out.println(c);
+
+        //boolean startsWith(xx):测试此字符串是否以指定的前缀开始
+        boolean b = str.startsWith("h");
+        System.out.println(b);
+
+        //判断 png jpg
+        String fileName = "a.png";
+
+        System.out.println(fileName.endsWith("png"));
+
+        //图片的名称
+
+        System.out.println(UUID.randomUUID().toString());
+
+        String uid = UUID.randomUUID().toString();
+
+        //替换 -
+        String replace = uid.replace("-", "");
+
+        String file = replace + ".png";
+        System.out.println(file);
+    }
+
+
+}

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