diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/.gitignore" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/.gitignore" new file mode 100644 index 0000000000000000000000000000000000000000..081b737fd3148bfde1ecb2c9d9212d2bcaf95092 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/.gitignore" @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 数据源本地存储已忽略文件 +/dataSources/ +/dataSources.local.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/misc.xml" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/misc.xml" new file mode 100644 index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/modules.xml" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/modules.xml" new file mode 100644 index 0000000000000000000000000000000000000000..42efd84fd1d07fa0614464f359e3671b8227a623 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/javac.iml" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/javac.iml" new file mode 100644 index 0000000000000000000000000000000000000000..c90834f2d607afe55e6104d8aa2cdfffb713f688 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/javac.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Ammm.class" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Ammm.class" new file mode 100644 index 0000000000000000000000000000000000000000..ca02b4780c302929dac40ba29f88827b5e89d313 Binary files /dev/null and "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Ammm.class" differ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Bmmm.class" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Bmmm.class" new file mode 100644 index 0000000000000000000000000000000000000000..da3dd0ec290251a765ffa542fbec6c41afe964d2 Binary files /dev/null and "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Bmmm.class" differ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Cmmm.class" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Cmmm.class" new file mode 100644 index 0000000000000000000000000000000000000000..1f35969af709c1b060f796e6ef675b869978689a Binary files /dev/null and "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Cmmm.class" differ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Dmmm.class" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Dmmm.class" new file mode 100644 index 0000000000000000000000000000000000000000..e65b6c4c84bc7714e83c9a91daa8413cd2f22e81 Binary files /dev/null and "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Dmmm.class" differ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Emmm.class" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Emmm.class" new file mode 100644 index 0000000000000000000000000000000000000000..267ae2c635deda2d00335aaa80830a3ed3f19ec9 Binary files /dev/null and "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/out/production/javac/Emmm.class" differ diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Ammm.java" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Ammm.java" new file mode 100644 index 0000000000000000000000000000000000000000..bff91853c0b4687748b8be7ba19b6a16fba11557 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Ammm.java" @@ -0,0 +1,17 @@ +public class Ammm { + public static void main(String[] args) { + // 定义变量 + String name=" 念哥"; + int age=18; + char gender ='男'; + + //输出数据 + System.out.println("姓名" + name); + System.out.println("年龄"+ age); + System.out.println("性别"+ gender); + System.out.println("念哥才高八斗,见多识广,平易近人"); + + + } + +} diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Bmmm.java" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Bmmm.java" new file mode 100644 index 0000000000000000000000000000000000000000..3edf927bd2cb527efb61c1f83347e9c0ea022503 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Bmmm.java" @@ -0,0 +1,10 @@ +public class Bmmm { + public static void main(String[] args) { + int x=10; + while (x<20){ + System.out.println("value of x :" +x); + x++; + System.out.println("/a"); + } + } +} diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Cmmm.java" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Cmmm.java" new file mode 100644 index 0000000000000000000000000000000000000000..e7dedb759dc1d720e5ef1be8dfee7a32f168fd8e --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Cmmm.java" @@ -0,0 +1,8 @@ +public class Cmmm { + public static void main(String[] args) { + int a=10; + if (a<20){ + System.out.println("这是if语句"); + } + } +} diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Dmmm.java" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Dmmm.java" new file mode 100644 index 0000000000000000000000000000000000000000..812d04c9783ae1f5665f3b618cd30808f420e411 --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Dmmm.java" @@ -0,0 +1,16 @@ +public class Dmmm { + public static void main(String[] args) { + String name="念哥"; + int age=20; + char gender='男'; + + System.out.println("姓名 " + name); + System.out.println("年龄 " + age); + System.out.println("性别 " + gender); + + + + + + } +} diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Emmm.java" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Emmm.java" new file mode 100644 index 0000000000000000000000000000000000000000..868d4de83bd66fdff392d8f7a4df4f7317a47fec --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/javac/src/Emmm.java" @@ -0,0 +1,12 @@ +public class Emmm { + public static void main(String[] args) { + int sum=0; + int i=1; + while (i<100);{ + sum+=i; + i++; + System.out.println("从1 到99的整合数为;" +sum); + + } + } +} diff --git "a/13\345\217\267\350\224\241\345\230\211\344\271\220/\347\254\224\350\256\260.md" "b/13\345\217\267\350\224\241\345\230\211\344\271\220/\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..b0fe1d2727385ce43a74fe755d16a50643e4b8bc --- /dev/null +++ "b/13\345\217\267\350\224\241\345\230\211\344\271\220/\347\254\224\350\256\260.md" @@ -0,0 +1,42 @@ +数值类型分为 + +整数(byte,short,int,long) + +浮点数(float,double) + +字符(char) + + + +非数值型 布尔(boolean) + + + +默认值 + +整数:int + +浮点型:double + +字符串 string + + + +变量的定义格式 + +# 格式:数据类型 变量名=变量值 + +示范;int price =998 + +#变量使用 1.输出使用 2.修改值 + +1.什么是变量 + +就是内存中的存储空间 + +空间中存储的数据是可以发生改变 + + + + +