摘要: 单行注释用“//xxxxxxxxx//”表示 多行注释用“/*xxxxx xxxxxxx xxxxxxxx xxxxxxx*/”表示 文本注释用的很少 标识符有8类,整数型包括byte,short,int,long;浮点型包括float,double;布尔型Boolean一种;以及字符型char。 阅读全文
posted @ 2022-07-08 09:59 SecondJobs 阅读(155) 评论(0) 推荐(0)
摘要: 文件名:Hello public class Hello{ public static void main(String[]args){ System.out.print("Hello,World!"); } } 基本写法就是上面的样子,但是我总是容易忘记的点: 1.分号 2.“{}”这个符号没写对 阅读全文
posted @ 2022-07-06 10:01 SecondJobs 阅读(32) 评论(0) 推荐(0)