From 3df73d76b553ffe2e1f24485b1995979ed0beb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=88=92=E6=B1=B6?= <3228916049@qq.com> Date: Sun, 27 Nov 2022 15:17:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "49 \346\235\216\350\210\222\346\261\266/49.md" | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 "49 \346\235\216\350\210\222\346\261\266/49.md" diff --git "a/49 \346\235\216\350\210\222\346\261\266/49.md" "b/49 \346\235\216\350\210\222\346\261\266/49.md" new file mode 100644 index 0000000..c6ceb04 --- /dev/null +++ "b/49 \346\235\216\350\210\222\346\261\266/49.md" @@ -0,0 +1,9 @@ + + + + +```java +public class niange { public static void main(String[] args) { int Class=2; String name="念哥"; String tetx="你是"; System.out.println(name+tetx+"花儿,"+tetx+"光,"); System.out.println(tetx+"闽大顶呱呱,永远"+Class+"班,年年十八"); System.out.println("希望张老师把韩大帅哥的火鸡面分赵敏和李舒汶两包"); }} +``` + + -- Gitee From b8f1cc33cd4c74922cd45eea9c70fe06a34bf450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=88=92=E6=B1=B6?= <3228916049@qq.com> Date: Sun, 27 Nov 2022 15:37:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=80=9C=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../49.md" | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git "a/49 \346\235\216\350\210\222\346\261\266/49.md" "b/49 \346\235\216\350\210\222\346\261\266/49.md" index c6ceb04..d1940e7 100644 --- "a/49 \346\235\216\350\210\222\346\261\266/49.md" +++ "b/49 \346\235\216\350\210\222\346\261\266/49.md" @@ -1,9 +1,30 @@ +数据类型:变量名:变量值 +int price=998; +字符类型 +Strig name -```java -public class niange { public static void main(String[] args) { int Class=2; String name="念哥"; String tetx="你是"; System.out.println(name+tetx+"花儿,"+tetx+"光,"); System.out.println(tetx+"闽大顶呱呱,永远"+Class+"班,年年十八"); System.out.println("希望张老师把韩大帅哥的火鸡面分赵敏和李舒汶两包"); }} -``` +默认值:整数:int + +浮数点:double + +非数值:boolean +数值:整数:byte,short,int long +数值:浮数点:float,double + +符号:char + +```java +public class niange { + public static void main(String[] args) { + int Class=2; String name="念哥"; String tetx="你是"; + System.out.println(name+tetx+"花儿,"+tetx+"光,"); + System.out.println(tetx+"闽大顶呱呱,永远"+Class+"班,年年十八"); + System.out.println("希望张老师把韩大帅哥的火鸡面分赵敏和李舒汶两包"); + } +} +``` -- Gitee