摘要: 无规矩不成方圆 package JAVA Dos生成文档; /** * @author wangsong * @version 1.0 * @since 1.8 */ public class Doc { String name; /** * @author wangsong 作者名 * @vers 阅读全文
posted @ 2022-04-16 16:31 王小瘦的园子 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1.自增、自减运算符+运算函数Math public class operator { public static void main(String[] args) { int a = 1; int b = a++;//此时 b = 1 先赋值后运算 int c = ++a;//此时 b = 3 先 阅读全文
posted @ 2022-04-16 15:52 王小瘦的园子 阅读(21) 评论(0) 推荐(0) 编辑
摘要: public class demo{ //类变量 用static static double salary = 99.8; //属性,变量{一个类中有属性+方法} //实例变量,从属于对象。可以不需要初始化 String name; int age; //main方法,程序入口 public sta 阅读全文
posted @ 2022-04-16 13:40 王小瘦的园子 阅读(25) 评论(0) 推荐(0) 编辑