会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你是暖光-x
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2019年10月10日
输入一个字符串,里面有26个英文字母和(半角逗号半角空格半角句号)按照()里的内容进行分割,遇到大写字母把其变成小写,遇到小写的将其变成大写然后输出字符串
摘要: String str1=""; String str=" aa, b,c.A,D,bHWAA"; String[] split = str.split("[\\s,\\.]"); for(String var:split ){ for(int i=0;i<var.length();i++){ if(
阅读全文
posted @ 2019-10-10 09:27 你是暖光-x
阅读(1000)
评论(0)
推荐(0)
2019年10月4日
单例模式
摘要: public class Singleton { //单例设计模式,禁止指令重排可以加volatile private static Singleton singleton = null; private void Singleton() { System.out.println(Thread.cu
阅读全文
posted @ 2019-10-04 17:26 你是暖光-x
阅读(86)
评论(0)
推荐(0)
排序算法
摘要: public static void kuaipai(int[] arr, int lift, int right) {//快速排序 int l = lift; int r = right; int p = arr[(lift + right) / 2]; int temp = 0; while (
阅读全文
posted @ 2019-10-04 17:26 你是暖光-x
阅读(115)
评论(0)
推荐(0)
上一页
1
2
公告