返回顶部
摘要: 注解: 从JDK5开始,Java增加对元数据的支持,也就是注解,注解与注释是有一定区别的,可以把注解理解为代码里的特殊标记,这些标记可以在编译,类加载,运行时被读取,并执行相应的处理。通过注解开发人员可以在不改变原有代码和逻辑的情况下在源代码中嵌入补充信息。SSM项目中存在各种注解,因为后续会手写这 阅读全文
posted @ 2019-11-10 08:10 明亮且蛋糕 阅读(341) 评论(0) 推荐(0) 编辑
摘要: BigDecimal import java.math.BigDecimal; public class BigDecimalDemo { public static void main(String[] args) { double num1 = 1.23456789; double num2 = 阅读全文
posted @ 2019-11-09 21:47 明亮且蛋糕 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目 2.创建图 3.修改名称 4.这个修改名称要保存了才可以 创建模型 项目的设计 阅读全文
posted @ 2019-11-09 21:43 明亮且蛋糕 阅读(202) 评论(0) 推荐(0) 编辑
摘要: StringBuilder public class StringBuilderDemo { public static void main(String[] args) { test(); } static void test() { // 需求:使用String完成50000个字符串的拼接: 7 阅读全文
posted @ 2019-11-09 21:38 明亮且蛋糕 阅读(267) 评论(0) 推荐(0) 编辑
摘要: -- 查询所有数据库 show databases -- 删除数据库 drop database a -- use `数据库名称`; 表示使用此数据库 use mybatis -- 查看表结构 show create table a1 -- 删除表 drop table a -- 查询表总共有多少条 阅读全文
posted @ 2019-11-09 21:36 明亮且蛋糕 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Person // 描述人类信息 class Person { String name; // 姓名 int age; // 年龄 static int totalNum = 70; // 表示人的总数 // 工作 void work() { System.out.println("工作....") 阅读全文
posted @ 2019-11-09 21:12 明亮且蛋糕 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ArrayCope public class ArrayCopeDemo { public static void main(String[] args) { int[] src = {1, 3, 5, 7, 9, 11}; int[] dest = new int[10]; print(dest) 阅读全文
posted @ 2019-11-09 21:01 明亮且蛋糕 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Array // 数组的操作 public class ArrayDemo { public static void main(String[] args) { int[] arr = new int[]{1,3,5,7,9}; System.out.println(arr); // [I@659e 阅读全文
posted @ 2019-11-09 20:57 明亮且蛋糕 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Break语句 // break语句 public class BreakDemo { public static void main(String[] args) { // 案例1:从1数到10,到数到5的时候,就停止. for (int i = 1; i <= 10; i++) { System 阅读全文
posted @ 2019-11-06 21:18 明亮且蛋糕 阅读(135) 评论(0) 推荐(0) 编辑
摘要: ArithmeticOperators // 算术运算符 public class ArithmeticOperatorsDemo { public static void main(String[] args) { char c = 'A'; char i = (char) (c + 12); S 阅读全文
posted @ 2019-11-06 21:12 明亮且蛋糕 阅读(203) 评论(0) 推荐(0) 编辑