返回顶部
摘要: 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 明亮且蛋糕 阅读(295) 评论(0) 推荐(0)
摘要: 1.创建项目 2.创建图 3.修改名称 4.这个修改名称要保存了才可以 创建模型 项目的设计 阅读全文
posted @ 2019-11-09 21:43 明亮且蛋糕 阅读(209) 评论(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 明亮且蛋糕 阅读(278) 评论(0) 推荐(0)
摘要: -- 查询所有数据库 show databases -- 删除数据库 drop database a -- use `数据库名称`; 表示使用此数据库 use mybatis -- 查看表结构 show create table a1 -- 删除表 drop table a -- 查询表总共有多少条 阅读全文
posted @ 2019-11-09 21:36 明亮且蛋糕 阅读(270) 评论(0) 推荐(0)
摘要: Person // 描述人类信息 class Person { String name; // 姓名 int age; // 年龄 static int totalNum = 70; // 表示人的总数 // 工作 void work() { System.out.println("工作....") 阅读全文
posted @ 2019-11-09 21:12 明亮且蛋糕 阅读(123) 评论(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 明亮且蛋糕 阅读(182) 评论(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 明亮且蛋糕 阅读(168) 评论(0) 推荐(0)