摘要: 整数 int num1 =10;//最常用 byte num2 =20; short num3 =30; long num4 =40L;//Long类型要在数字后面加L 小数:浮点数 float num5 =50.1F;//Lfloat类型要在数字后面加个F double num6 =3.14159 阅读全文
posted @ 2021-03-12 23:18 Shi2 阅读(24) 评论(0) 推荐(0)
摘要: //单行注释 /*多行注释 */ /**文档注释 */ 阅读全文
posted @ 2021-03-12 22:27 Shi2 阅读(25) 评论(0) 推荐(0)
摘要: public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); } } 阅读全文
posted @ 2021-03-12 17:00 Shi2 阅读(78) 评论(0) 推荐(0)