摘要: #各种规范 ##变量命名规范 阅读全文
posted @ 2022-02-12 16:15 小幼虫虫 阅读(17) 评论(0) 推荐(0)
摘要: ## 变量常量 //类变量 static //实例变量在类里面 //局部变量在方法里面 package com.liu; public class Demo04 { //类变量static static double salary = 2500; //常量 final //修饰符,不存在先后顺序 s 阅读全文
posted @ 2022-02-12 16:10 小幼虫虫 阅读(49) 评论(0) 推荐(0)
摘要: ###类型转换 package com.liu; public class demo03 { public static void main( String[] args) { int i = 128; byte b = (byte)i; //内存溢出 double c = i; //强制转换(类型 阅读全文
posted @ 2022-02-12 14:44 小幼虫虫 阅读(26) 评论(0) 推荐(0)