From 31334a7baa5f9351543444bc61c9fdd0bb385b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=95=8F?= <3234934487@qq.com> Date: Sun, 27 Nov 2022 16:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0221127java\345\217\230\351\207\217.md.md" | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 "56\350\265\265\346\225\217/20221127java\345\217\230\351\207\217.md.md" diff --git "a/56\350\265\265\346\225\217/20221127java\345\217\230\351\207\217.md.md" "b/56\350\265\265\346\225\217/20221127java\345\217\230\351\207\217.md.md" new file mode 100644 index 0000000..83c3967 --- /dev/null +++ "b/56\350\265\265\346\225\217/20221127java\345\217\230\351\207\217.md.md" @@ -0,0 +1,63 @@ +Java + +变量 + +1 字符 + + + +``` +char sex=‘男’ +``` + +2 整数 + +``` +byte short int【默认】 +``` + +3小数 + +``` +float double 【默认】 +``` + + + + + + + +4 字符串 + +``` +string +``` + +5 布尔 + +``` +Boolean +``` + +作业 + +``` +public class nian { + public static void main(String[] args) { + String name="念哥"; + String talk="我的班主任"; + int age=18; + char gebder='帅'; + String saysomething="他很喜欢跟我们一起玩 "; + System.out.println(name+talk+"是最潮流的辅导员"); + System.out.println("他今年"+age+"岁了。"+saysomething); + System.out.println("他是走在时尚最前端的辅导员"); + System.out.println("身高179.999"); + System.out.println("长得很帅 但是没有女朋友 优质单身女性可以联系我 成为我的师娘不是梦"); + System.out.println("希望他能把后备箱里韩文杰的火鸡面分半箱给我和舒汶"); + + } +} + +``` -- Gitee