![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
乔小安呐
这个作者很懒,什么都没留下…
展开
-
idea如何删除已经commit且push的记录
然后输入命令:git push -f。3.找到工作路径,选择以下。以上全部操作做完就可以啦。原创 2023-03-08 09:46:49 · 2769 阅读 · 0 评论 -
java判断字符串是否是回文排列字符
String s = "tactcoaa";// 输出:true(排列有"tacocat"、"atcocta",等等) char[] chars = s.toCharArray();//将字符串转换为字符 int num = 0; Map<String, Integer> map = new HashMap<>(); for (int i = 0; i < chars.length; i+...原创 2021-12-21 17:02:52 · 435 阅读 · 0 评论 -
判断字符串是否互为字符重排
//方法一: Boolean bo = true; String s1 = "absc", s2 = "bcda"; System.out.println(new Date()+"===========开始111========="+System.currentTimeMillis()); if(s1.length() != s1.length()){ bo = false; } cha.原创 2021-12-21 15:48:58 · 277 阅读 · 0 评论 -
如何判断字符串是否有重复字符
public static boolean isUnique(String astr) { long low64 = 0; long high64 = 0; for (char c : astr.toCharArray()) {//字符串转成字符数组 if (c >= 64) { long bitIndex = 1L << (c - 64);//1L-字母的ascii码(数字小于64.原创 2021-12-21 15:18:05 · 370 阅读 · 0 评论 -
用浏览器打开网址
用浏览器打开网址 try { for (int i = 0; i < list.size(); i++) { String url = "www.baidu.com"; url += list.get(i); if (java.awt.Desktop.isDesktopSupported()) { //创建一个URI实例,注意不是URL原创 2021-11-06 09:07:25 · 6278 阅读 · 0 评论