<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[boshidunlongxia的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/boshidunlongxia</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; boshidunlongxia]]></copyright><item><title><![CDATA[sql优化例子]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/127973392</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/127973392</guid><author>boshidunlongxia</author><pubDate>Mon, 21 Nov 2022 21:54:26 +0800</pubDate><description><![CDATA[sql优化]]></description><category></category></item><item><title><![CDATA[Java集合]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120896492</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120896492</guid><author>boshidunlongxia</author><pubDate>Thu, 21 Oct 2021 22:36:41 +0800</pubDate><description><![CDATA[集合框架
Collection接口：单列集合，用来存储一个一个的对象
List接口：存储有序的可重复的数组 —&gt;“动态”数组
常用方法

增：add(Object obj)
删：remove(int index) / remove(Object obj)
改：set(int index, Object ele)
差：get(int index)
插入：add(int index,Object ele)
长度：size()
遍历：Iterator迭代器方式、增强for循环、普通的循环

ArrayLis]]></description><category></category></item><item><title><![CDATA[比较类 Comparable]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120896443</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120896443</guid><author>boshidunlongxia</author><pubDate>Thu, 21 Oct 2021 22:33:36 +0800</pubDate><description><![CDATA[自然排序
自定类实现Comparable接口，并实现compareTo方法
Comparable 是排序接口。
若一个类实现了Comparable接口，就意味着“该类支持排序”。此外，“实现Comparable接口的类的对象”可以用作“有序映射(如TreeMap)”中的键或“有序集合(TreeSet)”中的元素，而不需要指定比较器。
接口中通过x.compareTo(y)来比较x和y的大小。若返回负数，意味着x比y小；返回零，意味着x等于y；返回正数，意味着x大于y。
public class Goods ]]></description><category></category></item><item><title><![CDATA[String、StringBuffer与StringBuilder之间区别]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120402181</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120402181</guid><author>boshidunlongxia</author><pubDate>Tue, 21 Sep 2021 15:55:05 +0800</pubDate><description><![CDATA[表格对比




String
StringBuffer
StringBuilder




String的值是不可变的，这就导致每次对String的操作都会生成新的String对象，不仅效率低下，而且浪费大量优先的内存空间
StringBuffer是可变类，和线程安全的字符串操作类，任何对它指向的字符串的操作都不会产生新的对象。每个StringBuffer对象都有一定的缓冲区容量，当字符串大小没有超过容量时，不会分配新的容量，当字符串大小超过容量时，会自动增加容量
可变类，速度更快


不可变
可变
可变]]></description><category></category></item><item><title><![CDATA[String类算法-java]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120396240</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120396240</guid><author>boshidunlongxia</author><pubDate>Mon, 20 Sep 2021 22:09:14 +0800</pubDate><description><![CDATA[模拟一个trim方法，去除字符串首尾的空格
/**
 * 模拟一个trim方法，去除字符串首尾的空格
 */

public class TrimTest {
    public static void main(String[] args) {
        String str = "   asda asd  z ";
        System.out.println(str);
        String s1 = myTrim1(str);
        System.out.print]]></description><category></category></item><item><title><![CDATA[java线程]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120375097</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120375097</guid><author>boshidunlongxia</author><pubDate>Sat, 18 Sep 2021 23:05:13 +0800</pubDate><description><![CDATA[解决线程安全问题的三种方式


同步代码块


同步方法 synchronize


锁机制 ReentrantLock lock = new ReentrantLock();
​			lock.lock(); 	lock.unlock;


创建线程的四种方式
Java使用Thread类代表线程，所有的线程对象都必须是Thread类或其子类的实例。Java可以用四种方式来创建线程，如下所示：

继承Thread类创建线程
实现Runnable接口创建线程
使用Callable和Future创建线程
使用线]]></description><category></category></item><item><title><![CDATA[笔记：java面向对象编程]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120374503</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120374503</guid><author>boshidunlongxia</author><pubDate>Sat, 18 Sep 2021 22:02:20 +0800</pubDate><description><![CDATA[值传递与引用传递

值传递并未在以下代码中产生效果

//值传递
public class Demo01 {
    public static void main(String[] args) {
        int a = 0;
        System.out.println(a);

        Demo01.change(a);
        System.out.println(a);
    }
    public static void change(int a){
    ]]></description><category></category></item><item><title><![CDATA[JAVA数组与算法小记]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120115713</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120115713</guid><author>boshidunlongxia</author><pubDate>Sun, 05 Sep 2021 15:29:39 +0800</pubDate><description><![CDATA[JAVA数组小记
数组的定义
int[] arrays;
arrays = new int[];

FOR EACH循环
for (int array : arrays){
    
}//一维数组



Arrays类
Arrays.toString();//一维数组

for (int[] ints : array2) {//二维数组
            System.out.println(Arrays.toString(ints));}

冒泡排序
public class Maopao {
 ]]></description><category></category></item><item><title><![CDATA[Markdown基本语法学习]]></title><link>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120023691</link><guid>https://blog.youkuaiyun.com/boshidunlongxia/article/details/120023691</guid><author>boshidunlongxia</author><pubDate>Tue, 31 Aug 2021 18:04:10 +0800</pubDate><description><![CDATA[Markdown
标题
三级标题
字体
Hello world
Hello world
Hello world
Hello world
引用

‘&gt;’+’ ’

分割线


‘—’ or ‘***’
图片
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-RzM2jwcW-1630404089457)(C:\Users\18325\Pictures\Saved Pictures\pic.21.jpg)]

超链接
跳转到腾讯体育
列表

a
b
c


1
2
3

表格
]]></description><category></category></item></channel></rss>