diff --git a/Java源代码/lesson04/.idea/.gitignore b/Java源代码/lesson04/.idea/.gitignore new file mode 100644 index 00000000..0a8642fa --- /dev/null +++ b/Java源代码/lesson04/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Zeppelin ignored files +/ZeppelinRemoteNotebooks/ diff --git a/Java源代码/lesson04/.idea/inspectionProfiles/Project_Default.xml b/Java源代码/lesson04/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..c6bd9f3d --- /dev/null +++ b/Java源代码/lesson04/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,33 @@ + + + + \ No newline at end of file diff --git a/Java源代码/lesson04/.idea/lesson04.iml b/Java源代码/lesson04/.idea/lesson04.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/Java源代码/lesson04/.idea/lesson04.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/Java源代码/lesson04/.idea/modules.xml b/Java源代码/lesson04/.idea/modules.xml new file mode 100644 index 00000000..8b84b507 --- /dev/null +++ b/Java源代码/lesson04/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Java源代码/lesson04/.idea/vcs.xml b/Java源代码/lesson04/.idea/vcs.xml new file mode 100644 index 00000000..b2bdec2d --- /dev/null +++ b/Java源代码/lesson04/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Java源代码/lesson04/demo01/src/main/java/com/ykl/App02.java b/Java源代码/lesson04/demo01/src/main/java/com/ykl/App02.java new file mode 100644 index 00000000..76c375a0 --- /dev/null +++ b/Java源代码/lesson04/demo01/src/main/java/com/ykl/App02.java @@ -0,0 +1,19 @@ +package com.ykl.example01; + +/** + * Hello world! + * + */ +public class App02 +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + Dog dd = new Dog(); + Animal ad = new Dog(); + dd.say(); + dd.eat(); + ad.say(); + ad.eat(); + } +} diff --git a/Java源代码/lesson04/demo01/src/main/java/com/ykl/example01/Person.java b/Java源代码/lesson04/demo01/src/main/java/com/ykl/example01/Person.java new file mode 100644 index 00000000..426c655e --- /dev/null +++ b/Java源代码/lesson04/demo01/src/main/java/com/ykl/example01/Person.java @@ -0,0 +1,9 @@ +/** + * Alipay.com Inc. + * Copyright (c) 2004-2022 All Rights Reserved. + */package com.ykl.example01;/** + * + * @author yinkanglong + * @version : Person, v 0.1 2022-07-24 01:56 yinkanglong Exp $ + */public class Person { +}