From 7e195ff46c7f13a3b0b05fffcccc6f013da23ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BD=B3=E7=82=9C?= <626104790@qq.com> Date: Sun, 27 Nov 2022 20:03:05 +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 --- .../\344\273\243\347\240\201.md" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "26 \351\231\210\344\275\263\347\202\234/\344\273\243\347\240\201.md" diff --git "a/26 \351\231\210\344\275\263\347\202\234/\344\273\243\347\240\201.md" "b/26 \351\231\210\344\275\263\347\202\234/\344\273\243\347\240\201.md" new file mode 100644 index 0000000..d92f945 --- /dev/null +++ "b/26 \351\231\210\344\275\263\347\202\234/\344\273\243\347\240\201.md" @@ -0,0 +1,44 @@ +# 代码 + +~~~java +public class work { + public static void main(String[] args) { + int a = 18; + double b = 200; + char xb = '男'; + String name = "张念山"; + String kua = "人见人爱花见花开"; + System.out.println("我的老师名字叫做" + name); + System.out.println("性别是" + xb); + System.out.println("年龄" + a); + System.out.println("身高" + b + "厘米"); + System.out.println("长得是" + kua); + } + +} + +~~~ + +# 笔记 + +数值型:整数、浮点数、字符 + +非数值:布尔型 + +main是进入java的入口 + +print是打印输出ln是换行 + + + +变量的定义是数据类行变量名+变量值 + + + + + +标识符由数字、字母、下划线和美金组成 + +不能数字开头 + +不能是关键字 \ No newline at end of file -- Gitee