<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[AlexAuthor7的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/AlexAuthor7</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; AlexAuthor7]]></copyright><item><title><![CDATA[15、String类（SringBuffer 类、 StringBuilder 类)]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112856165</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112856165</guid><author>AlexAuthor7</author><pubDate>Wed, 20 Jan 2021 00:45:30 +0800</pubDate><description><![CDATA[一、String的特性

1、String是一个final类,代表不可变的字符序列.不可被继承。


2、字符串是一个常量,使用“  ”来表示, 他们的值在创建之后不能更改。


3、String实现了Serializable接口,表示字符串是支持序列化的
实现了Comparable接口,表示字符串可以比较大小


4、String 内部定义了final char[] value 数组用于存储字符串数据


5、String代表不可变的字符字符序列。简称：不可变性。体现：


当字符串重新赋值时，需要重新指]]></description><category></category></item><item><title><![CDATA[15、JDK 8 中的日期时间API]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112856064</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112856064</guid><author>AlexAuthor7</author><pubDate>Wed, 20 Jan 2021 00:41:24 +0800</pubDate><description><![CDATA[JDK 8 中的日期时间API
一、新的时间日期API

1、第三次引入的API是成功的， 并且Java 8中引入的java.time API 已经纠正了
过去的缺陷，将来很长一段时间内它都会为我们服务。


2、Java 8 吸收了 Joda-Time 的精华，以一个新的开始为 Java 创建优秀的 API。
新的 java.time 中包含了所有关于本地日期（LocalDate）、本地时间
（LocalTime）、本地日期时间（LocalDateTime）、时区（ZonedDateTime）
和持续时间]]></description><category></category></item><item><title><![CDATA[15、JDK 8 之前的时间 API]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855991</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855991</guid><author>AlexAuthor7</author><pubDate>Wed, 20 Jan 2021 00:37:01 +0800</pubDate><description><![CDATA[一、java.lang.System类

System类提供的public static long currentTimeMillis()用来返回当前时
间与1970年1月1日0时0分0秒之间以毫秒为单位的时间差。

@Test
public void test(){
    long time = System.currentTimeMillis()；
    //时间戳，可用于生成订单号
}


此方法适于计算时间差。
计算世界时间的主要标准有：


UTC(Coordinated Universal ]]></description><category></category></item><item><title><![CDATA[15、★ java比较器（Comparable 类 、Comparator类）]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855926</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855926</guid><author>AlexAuthor7</author><pubDate>Wed, 20 Jan 2021 00:35:21 +0800</pubDate><description><![CDATA[Java的比较器

在Java中经常会涉及到对象数组的排序问题，那么就涉及到对象之间的比较问题。


Java实现对象排序的方式有两种：



自然排序： java.lang.Comparable


定制排序： java.util.Comparator



一、自然排序： java.lang.Comparable
使用步骤

让要排序的类实现cmparable接口
重写comparaTo()方法（可以用String 中的方法）


Comparable接口强行对实现它的每个类的对象进行整体排序。这种排序]]></description><category></category></item><item><title><![CDATA[16、异常处理]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855810</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112855810</guid><author>AlexAuthor7</author><pubDate>Wed, 20 Jan 2021 00:33:04 +0800</pubDate><description><![CDATA[异常处理
概述

异常概述与异常体系结构


常见异常


++异常处理机制一：try-catch-finally++


++异常处理机制二：throws++


手动抛出异常:throw + 异常类型


用户自定义异常类

一、异常概述与异常体系结构
异常：在Java语言中， 将程序执行中发生的不正常情况称为“异常” 。
(开发过程中的语法错误和逻辑错误不是异常)
Java程序在执行过程中所发生的异常事件可分为两类：

Error： Java虚拟机无法解决的严重问题。 如： JVM系统内部错误、 资源]]></description><category></category></item><item><title><![CDATA[17、多线程]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112797146</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112797146</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 23:09:55 +0800</pubDate><description><![CDATA[多线程
目录
一、基本概念：程序、进程、线程
二、线程的创建和使用
三、线程的生命周期
四、线程的同步
五、线程的通信
六、JDK 5.0新增的线程创建方式
一、基本概念：程序、进程、线程
1、程序(program)，是为完成特定任务、用某种语言编写的一组指令的集合。即++指一段静态的代码++，静态对象。
2、进程(process)，是程序的一次执行过程，或是++正在运行的一个程序++。是一个动态的过程：有它自身的产生、存在和消亡的过程。 ——生命周期

如：运行中的QQ，运行中的MP3播放器
程序是静态的]]></description><category></category></item><item><title><![CDATA[20、泛型]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112797045</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112797045</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 23:03:55 +0800</pubDate><description><![CDATA[泛型与File
目录
1、为什么要有泛型
2、在集合中使用泛型
3、自定义泛型结构
4、泛型在继承上的体现
5、通配符的使用
6、泛型应用举例
一、为什么要有泛型
1、理解：标签

    //在集合中使用泛型的情况
    @Test
    public void test1(){
        ArrayList list = new ArrayList();
        //需求：存放学生的成绩
        list.add(34);
        list.add(84);
     ]]></description><category></category></item><item><title><![CDATA[对数据类型的操作]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112796951</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112796951</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:52:55 +0800</pubDate><description><![CDATA[对Blob数据类型的操作
/**
 * @Auther: Alex
 * @Date: 2020/12/26 - 12 - 26 -23:28
 * @Description: 测试使用ProparedStatement操作Blob类型的数据
 * @Verxion: 1.0
 */
public class BlobTest1 {
    //向customers中插入Blob类型的字段
    @Test
    public void test1() throws Exception {
      ]]></description><category></category></item><item><title><![CDATA[6-5 数组队列和链表队列性能对比]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551058</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551058</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:51:06 +0800</pubDate><description><![CDATA[【实现】
public class Main {
    public static void main(String[] args) {
        int opCount = 100000;
        ArrayQueue&lt;Integer&gt; arrayQueue = new ArrayQueue&lt;&gt;();
        LinkedListQueue&lt;Integer&gt; linkedListQueue = new LinkedListQueue&lt;&gt]]></description><category></category></item><item><title><![CDATA[5-2 栈的实现]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551010</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551010</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:43:07 +0800</pubDate><description><![CDATA[基本功能
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-G3LRZZmK-1610469089793)(D3C0144A7FD44573B9FF652E616CF7C6)]
面向对象迭代
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-hNhxU9NF-1610469089796)(E0BA029B2D7F4D93A25CFCAED164BEFB)]
【Stack接口】
public class Main {
    public static ]]></description><category></category></item><item><title><![CDATA[6-4 改进我们的链表（用以实现队列）]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551034</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551034</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:42:55 +0800</pubDate><description><![CDATA[[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-PlRg0Ncr-1610469237605)(7F98D99916094B9DB393F88FD15C1E65)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-uZd63k97-1610469237611)(9F30BF730F9D4DB89FC33CC2B04FB321)]
【实现】
public class LinkedListQueue&lt;E&gt; implements Queue&]]></description><category></category></item><item><title><![CDATA[8-2测试归并排序的性能]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551212</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551212</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:42:01 +0800</pubDate><description><![CDATA[验证复杂度为 O(nlogn)
public static void main(String[] args) {
        int [] dataSize = {100000,1000000};

        for(int n:dataSize){
            Integer[] data = ArrayGenerator.generateRandomArray(n,n*100);
            long start = System.nanoTime();//纳秒

  ]]></description><category></category></item><item><title><![CDATA[10-1 二分查找]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551447</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551447</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:41:18 +0800</pubDate><description><![CDATA[[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-HwysHLUx-1610469964685)(22D67B16450440C2999668867603ABE9)]
【递归版本实现】
public class BinarySearch {
    private BinarySearch() {
    }

    public static &lt;E extends Comparable&lt;E&gt;&gt; int search(E[] arr, E target)]]></description><category></category></item><item><title><![CDATA[6-3 链表与数组栈的性能比较]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551027</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112551027</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:40:17 +0800</pubDate><description><![CDATA[【实现】
public static void main(String[] args) {
        int opCount = 100000;
        ArrayStack&lt;Integer&gt; arrayStack = new ArrayStack&lt;&gt;();
        LinkedListStack&lt;Integer&gt; linkedListStack = new LinkedListStack&lt;&gt;();
        double time]]></description><category></category></item><item><title><![CDATA[JDBC 获取数据库连接的五种方式]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645802</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645802</guid><author>AlexAuthor7</author><pubDate>Mon, 18 Jan 2021 22:40:08 +0800</pubDate><description><![CDATA[public class ConnectionTest1 {
    //方式一
    @Test
    public void test() throws SQLException {

        Driver driver = new com.mysql.cj.jdbc.Driver();
        //在mysql中会显示时区异常
        String url = "jdbc:mysql://localhost:3306/test?serverTimezone=UTC";
  ]]></description><category></category></item><item><title><![CDATA[JDBC 对Blob数据类型的操作以及大批量插入数据]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645793</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645793</guid><author>AlexAuthor7</author><pubDate>Fri, 15 Jan 2021 00:25:08 +0800</pubDate><description><![CDATA[对Blob数据类型的操作
/**
 * @Auther: Alex
 * @Date: 2020/12/26 - 12 - 26 -23:28
 * @Description: 测试使用ProparedStatement操作Blob类型的数据
 * @Verxion: 1.0
 */
public class BlobTest1 {
    //向customers中插入Blob类型的字段
    @Test
    public void test1() throws Exception {
      ]]></description><category></category></item><item><title><![CDATA[MySQL 常见数据类型]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645783</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645783</guid><author>AlexAuthor7</author><pubDate>Fri, 15 Jan 2021 00:22:58 +0800</pubDate><description><![CDATA[数值型：
	整形 tinyint | smallint | mediumint | int、integer | bigint
	小数
		定点型 dec(m,d) | decinal(m,d)
		浮点型 float(m,d) | double(m,d)
字符型
	较短的文本 ：char | varchar
	较长的文本 : text | blob (较长的二进制数据)		
日期型
	date | datetime | timestamp | time | year

一、整形
整形 tinyint | .]]></description><category></category></item><item><title><![CDATA[MySQL语言基础]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645738</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645738</guid><author>AlexAuthor7</author><pubDate>Fri, 15 Jan 2021 00:21:19 +0800</pubDate><description><![CDATA[## 本单元目标
二、数据库的相关概念
	DBMS、DB、SQL
三、数据库存储数据的特点
四、初始MySQL
	MySQL产品的介绍        
	MySQL产品的安装          ★        
	MySQL服务的启动和停止     ★
	MySQL服务的登录和退出     ★      
	MySQL的常见命令和语法规范      
五、DQL语言的学习   ★              
	基础查询        ★             
	条件查询  	   ★			
	排序查询]]></description><category></category></item><item><title><![CDATA[MySQL   TCL语言学习]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645665</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645665</guid><author>AlexAuthor7</author><pubDate>Fri, 15 Jan 2021 00:16:15 +0800</pubDate><description><![CDATA[tcl

Transaction 事务
Control 控制
Language 语言

事务：
一个或一组sql语句组成一个执行单元，

特点：
这个执行单元要么全部执行，要么全部不执行


案例： 转账 张三丰给杨过转账500元

张三丰 1000
杨过   1000

update 表名 set 张三丰的余额=500 where name = '张三丰';
update 表名 set 杨过的余额=1500 where name = '杨过'


# 查看存储引擎(show engines;)
SHOW ]]></description><category></category></item><item><title><![CDATA[MySQL 中的过程和函数]]></title><link>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645630</link><guid>https://blog.youkuaiyun.com/AlexAuthor7/article/details/112645630</guid><author>AlexAuthor7</author><pubDate>Fri, 15 Jan 2021 00:12:47 +0800</pubDate><description><![CDATA[存储过程和函数
存储过程和函数：类似java中的方法

存储过程：自足预先编译好的SQL语句的集合，理解成批处理语句

好处：
1、提高代码的重用性
2、简化操作
3、减少了编译次数并且减少了和数据可服务器的连接次数，提高了效率


一、创建函数

语法：
create procedure 存储过程名(参数列表)
begin 
	存储过程体、方法体（一组合法有效的SQL语句）
end

注意
1、begin - end 语句的作用类似于java中的{}
2、参数泪飙包含三部分
	参数模式	参数名		参数类型]]></description><category></category></item></channel></rss>