摘要:
变量作用域 类变量 实例变量 局部变量 public class variable { static int allClicks=0;//类变量 String str="hello world";//实例变量 public void method(){ int i=0; //局部变量 } } pub 阅读全文
posted @ 2022-03-08 17:26
淦饭一定要快
阅读(27)
评论(0)
推荐(0)
摘要:
类型转换 转换顺序 从低到高 byte, short, char, int, long, float, double public class transformtype { public static void main(String[] args) { //强制转换 (类型名)变量名 高到低 i 阅读全文
posted @ 2022-03-08 16:30
淦饭一定要快
阅读(36)
评论(0)
推荐(0)