From 2573aec0dd8f9f11988050015ed6ecff48babd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=99=E8=8B=8F=E6=96=87?= <2361635242@qq.com> Date: Sun, 27 Nov 2022 14:34:39 +0800 Subject: [PATCH] submitHomework --- ...00\346\254\241\344\275\234\344\270\232.md" | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 "\351\230\231\350\213\217\346\226\207\347\232\204\346\226\207\344\273\266\345\244\271/20221126 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" diff --git "a/\351\230\231\350\213\217\346\226\207\347\232\204\346\226\207\344\273\266\345\244\271/20221126 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" "b/\351\230\231\350\213\217\346\226\207\347\232\204\346\226\207\344\273\266\345\244\271/20221126 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..f4ff0c9 --- /dev/null +++ "b/\351\230\231\350\213\217\346\226\207\347\232\204\346\226\207\344\273\266\345\244\271/20221126 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,65 @@ +# java笔记 + +1.1、整数 + +``` java +byte short int 定义 long 数据后要加L +``` + + + +1.2、布尔 + +```java +boolean +``` + + + +1.3、浮点数 + +```java +定义 float 数据后要加F double +``` + + + +1.4、字符串 + +```java +String +``` + + + +1.5、字符 + +```java +char sos ='男'; +``` + + + + + +# 作业 + +```java +public class Wdsj { + public static void main(String[] args) { + String name = "念哥"; + int age = 18; + char gender= '帅'; + String btring="199有余,"; + String satSomthing ="我们都很好。"; + System.out.println(name+"今年"+age+ "岁了,身高"+btring+"念哥很"+gender+"对"+satSomthing); + String name1 ="念哥,"; + String bommom ="花儿,你是光。"; + String badle ="闽大最帅男教师。"; + String badlr = "天天开心快乐。"; + System.out.println(name1+"你是"+bommom+"你是"+badle); + System.out.println("祝念哥"+badlr); + } +} +``` + -- Gitee