上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: Tomcat 安装Tomcat 下载地址,版本9.0.41 解压后放到熟悉目录即可 启动和配置 启动和关闭 启动apache-tomcat-9.0.41\bin\startup.bat 若闪退,需要先配置Java环境变量 在浏览器中输入http://localhost:8080/进行测试 打开apa 阅读全文
posted @ 2021-01-26 14:11 一天到晚睡觉的鱼 阅读(74) 评论(0) 推荐(0)
摘要: 13. 罗马数字转整数 题目链接 贪心 class Solution { int[] values = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; String[] symbols = {"M", "CM", "D", "CD", 阅读全文
posted @ 2021-01-26 12:28 一天到晚睡觉的鱼 阅读(59) 评论(0) 推荐(0)
摘要: JDBC 数据库驱动 应用程序->JDBC->MySQL驱动->数据库 使用JDBC需要java.sql,javax.sql,数据库驱动包 MySQL驱动下载地址 版本:5.1.48 基本流程 package com.yhr.lesson01; import java.sql.*; public c 阅读全文
posted @ 2021-01-25 23:13 一天到晚睡觉的鱼 阅读(95) 评论(0) 推荐(0)
摘要: MySQL使用(三) 事务(Transaction) 要么都成功,要么都失败 将一组SQL放在一个批次中去执行 事务的原则: **ACID原则:原子性(Atomicity),一致性(Consistency),隔离性(Isolation),持久性(Durability) ** 原子性:整个事务中的所有 阅读全文
posted @ 2021-01-25 15:28 一天到晚睡觉的鱼 阅读(60) 评论(0) 推荐(0)
摘要: 12. 整数转罗马数字 题目链接 打表 class Solution { private String[][] romanNum = { {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}, {"X", "XX", "XXX", "XL" 阅读全文
posted @ 2021-01-25 11:32 一天到晚睡觉的鱼 阅读(62) 评论(0) 推荐(0)
摘要: 第二章 排序(二) 2.2 归并排序 2.2.1 原地归并的抽象方法 public static void merge(Comparable[] a, int lo, int mid, int hi){ //将a[lo..mid]和a[mid+1..hi]归并 int i = lo, j = mid 阅读全文
posted @ 2021-01-24 23:20 一天到晚睡觉的鱼 阅读(122) 评论(0) 推荐(0)
摘要: MySQL使用(二) 数据库的字段类型 数值 tinyint:1个字节 smallint:2个字节 mediumint:3个字节 int:4个字节 bigint:8个字节 float:4个字节 double:8个字节 decimal:字符串形式的浮点数,多用于金融计算 字符串 char:固定大小字符 阅读全文
posted @ 2021-01-24 19:25 一天到晚睡觉的鱼 阅读(53) 评论(0) 推荐(0)
摘要: 11. 盛水最多的容器 题目链接 暴力解法 class Solution { public int maxArea(int[] height) { int n = height.length; int ans = 0; for(int i = 0; i < n-1; i++){ for(int j 阅读全文
posted @ 2021-01-24 11:06 一天到晚睡觉的鱼 阅读(84) 评论(0) 推荐(0)
摘要: 第二章 排序(一) 2.1 初级排序算法 2.1.1 游戏规则 排序的目标:将所有元素的主键按照某种方式排列。 排序类算法的模板: public class Example{ public static void sort(Comparable[] a){}//对实现comparable接口对象组成 阅读全文
posted @ 2021-01-23 22:33 一天到晚睡觉的鱼 阅读(110) 评论(0) 推荐(0)
摘要: MySQL使用(一) 基本命令行操作 启动数据库:net start mysql 连接数据库:mysql -uroot -p 所有的语句都使用分号结尾 查看所有数据库:show databases 切换数据库:use 数据库名; 查看所有表:show tables; 显式表中的信息:describe 阅读全文
posted @ 2021-01-23 22:31 一天到晚睡觉的鱼 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页