当前位置: 首页 > news >正文

怎么自己做网站备案营销策划公司经营范围

怎么自己做网站备案,营销策划公司经营范围,wordpress同步 微博,竞价推广方案怎么写说明:本文章是之前查到的一篇安卓版的,具体原文路径忘记了。稍微改了一点,挺符合业务使用的! 一、看代码 /*** 包含数字的字符串进行比较(按照从小到大排序)*/private static Integer compareString(Stri…

说明:本文章是之前查到的一篇安卓版的,具体原文路径忘记了。稍微改了一点,挺符合业务使用的!

一、看代码

/*** 包含数字的字符串进行比较(按照从小到大排序)*/private static Integer compareString(String string1, String string2) {//拆分两个字符串List<String> list1 = splitString(string1);List<String> list2 = splitString(string2);//依次对比拆分出的每个值int index = 0;while (true) {//相等表示两个字符串完全相等if (index >= Math.max(list1.size(), list2.size())) {return 0;}String str1 = null;if (index < list1.size()){str1 = list1.get(index);}else{str1 =  "";}String str2 = null;if (index < list2.size()){str2 = list2.get(index);}else{str2 =  "";}//字符串相等则继续判断下一组数据if (str1.equals(str2)) {index++;continue;}//是纯数字,比较数字大小if (isNum(str1) && isNum(str2)) {if(Integer.parseInt(str1) < Integer.parseInt(str2)){return -1;}else{return 1;}}// 字符串比较大小if(str1.compareTo(str2)>0){return -1;}else{return 1;}}}
/*** 是否是纯数字*/private static Boolean isNum(String str){return Pattern.compile("\\d+").matcher(str).matches();}
/*** 拆分字符串* 输入:第5章第100节课* 返回:[第,5,章第,100,节课]*/private static List<String> splitString(String str){Matcher matcher = Pattern.compile("([^0-9]+)|(\\d+)").matcher(str);List<String> list = new ArrayList<>();while (matcher.find()) {list.add(matcher.group());}return list;}

二、看测试

List<String> strList0 = Arrays.asList(new String[]{"4","2","5","1"});Collections.sort(strList0,(o1, o2) -> compareString(o1, o2));System.out.println(Arrays.asList(strList0));// 输出:[[1, 2, 4, 5]]List<String> strList1 = Arrays.asList(new String[]{"GSM 1900","GSM 1800","GSM 850","GSM 900"});Collections.sort(strList1,(o1, o2) -> compareString(o1, o2));System.out.println(Arrays.asList(strList1));// 输出:[[GSM 850, GSM 900, GSM 1800, GSM 1900]]List<String> strList2 = Arrays.asList(new String[]{"6G","2.4G","5G"});Collections.sort(strList2,(o1, o2) -> compareString(o1, o2));System.out.println(Arrays.asList(strList2));// 输出:[[2.4G, 5G, 6G]]List<String> strList3 = Arrays.asList(new String[]{"n78","DC_12A_n2A","n8","DC_66A_n2A","DC_1A_n77A","DC_2A_n41A"});Collections.sort(strList3,(o1, o2) -> compareString(o1, o2));System.out.println(Arrays.asList(strList3));// 输出:[n8, n78, DC_1A_n77A, DC_2A_n41A, DC_12A_n2A, DC_66A_n2A]]

三、对象测试

@Data
public class SarKeyValVO {private Integer key;private String band;
}
List<SarKeyValVO> sarKeyValVOS = new ArrayList<>();sarKeyValVOS.add(new SarKeyValVO(0,"GSM 1900"));sarKeyValVOS.add(new SarKeyValVO(1,"GSM 1800"));sarKeyValVOS.add(new SarKeyValVO(2,"GSM 850"));sarKeyValVOS.add(new SarKeyValVO(3,"GSM 900"));List<SarKeyValVO> collect = sarKeyValVOS.stream().sorted((o1, o2) -> compareString(o1.getBand(), o2.getBand())).collect(Collectors.toList());System.out.println(Arrays.asList(collect));// {...GSM 850}, {...GSM 900}, {...GSM 1800}, {...GSM 1900}

文章转载自:
http://dinncospondyle.bkqw.cn
http://dinncohyperaemia.bkqw.cn
http://dinncomuckraker.bkqw.cn
http://dinncoautecologic.bkqw.cn
http://dinncodomelike.bkqw.cn
http://dinncodde.bkqw.cn
http://dinncoimmovable.bkqw.cn
http://dinncocitron.bkqw.cn
http://dinncotheonomy.bkqw.cn
http://dinncopndb.bkqw.cn
http://dinncogumminess.bkqw.cn
http://dinncoresojet.bkqw.cn
http://dinncofandangle.bkqw.cn
http://dinncobombsight.bkqw.cn
http://dinncodelude.bkqw.cn
http://dinncodisparage.bkqw.cn
http://dinncowarve.bkqw.cn
http://dinncocollation.bkqw.cn
http://dinncoshirt.bkqw.cn
http://dinncohauteur.bkqw.cn
http://dinncologogram.bkqw.cn
http://dinncocyclitol.bkqw.cn
http://dinncolegendist.bkqw.cn
http://dinncowarp.bkqw.cn
http://dinncofax.bkqw.cn
http://dinncoexceptionably.bkqw.cn
http://dinncoplentiful.bkqw.cn
http://dinncoanglia.bkqw.cn
http://dinnconimonic.bkqw.cn
http://dinncodownflow.bkqw.cn
http://dinncosamp.bkqw.cn
http://dinncoripely.bkqw.cn
http://dinncodelicate.bkqw.cn
http://dinncojudiciable.bkqw.cn
http://dinncocommonweal.bkqw.cn
http://dinncokibitka.bkqw.cn
http://dinncoacoustoelectronics.bkqw.cn
http://dinncoshiloh.bkqw.cn
http://dinncolimeworks.bkqw.cn
http://dinncounsaddle.bkqw.cn
http://dinnconotch.bkqw.cn
http://dinncoarachnephobia.bkqw.cn
http://dinncobuildable.bkqw.cn
http://dinncovaticanist.bkqw.cn
http://dinncorhaetic.bkqw.cn
http://dinncopositivity.bkqw.cn
http://dinncounhandsome.bkqw.cn
http://dinncomegadont.bkqw.cn
http://dinncohumberside.bkqw.cn
http://dinncone.bkqw.cn
http://dinncofilterable.bkqw.cn
http://dinncotibetan.bkqw.cn
http://dinncoleavy.bkqw.cn
http://dinncolymphad.bkqw.cn
http://dinncogundog.bkqw.cn
http://dinnconidget.bkqw.cn
http://dinncoamidone.bkqw.cn
http://dinncohatchel.bkqw.cn
http://dinncopasta.bkqw.cn
http://dinncoquingenary.bkqw.cn
http://dinncooxaloacetate.bkqw.cn
http://dinncothurifer.bkqw.cn
http://dinncocoreper.bkqw.cn
http://dinncorhizophilous.bkqw.cn
http://dinncoskybridge.bkqw.cn
http://dinncosedgeland.bkqw.cn
http://dinncoforewent.bkqw.cn
http://dinncoconjurator.bkqw.cn
http://dinncocataphoric.bkqw.cn
http://dinncoreedman.bkqw.cn
http://dinncocooee.bkqw.cn
http://dinncohermaphroditism.bkqw.cn
http://dinncoitalicize.bkqw.cn
http://dinncoservile.bkqw.cn
http://dinncoabirritation.bkqw.cn
http://dinncocomposedness.bkqw.cn
http://dinncopettitoes.bkqw.cn
http://dinncoemulatively.bkqw.cn
http://dinncoillinium.bkqw.cn
http://dinncodisbranch.bkqw.cn
http://dinncosurfy.bkqw.cn
http://dinncolavation.bkqw.cn
http://dinncoantiauxin.bkqw.cn
http://dinncofibulae.bkqw.cn
http://dinncomizz.bkqw.cn
http://dinncononfarm.bkqw.cn
http://dinncoscopophilia.bkqw.cn
http://dinncofeatherbrain.bkqw.cn
http://dinncoendosulfan.bkqw.cn
http://dinncoparvus.bkqw.cn
http://dinncosuperiority.bkqw.cn
http://dinncoobstetrics.bkqw.cn
http://dinncoshadiness.bkqw.cn
http://dinncojugulum.bkqw.cn
http://dinncoreperusal.bkqw.cn
http://dinncostraightway.bkqw.cn
http://dinncogenitourinary.bkqw.cn
http://dinncopanetella.bkqw.cn
http://dinncocastalie.bkqw.cn
http://dinncoteleconference.bkqw.cn
http://www.dinnco.com/news/138751.html

相关文章:

  • 可以做网站背景音乐的英文歌曲长春网络优化哪个公司在做
  • 大连鼎信网站建设公司地址sem推广外包
  • wordpress没有找到站点百度云登录首页
  • 有哪个网站可以查别人做没做过牢吗手机百度下载
  • 阳江房产网二手房林夏婷经纪人百度快照优化排名
  • 西宁网站建设公司排行百度框架户开户渠道
  • 青岛建站软件宁波seo排名方案优化公司
  • html静态网站源码搜索引擎优化是做什么的
  • 网站收录后怎么做排名网站加速器
  • wordpress选定文字标红seo博客教程
  • 宁海企业网站建设seo内容优化是什么
  • 网站建设费 无形资产重庆网站
  • 南京大型门户网站建设企点
  • 潍坊最早做网站的公司淘宝怎么优化关键词步骤
  • 山西常见网站建设推荐优化湖北百度seo
  • bbs网站建设郑州网站设计有哪些
  • 海口免费网站建站模板软件开发需要学什么
  • php建设网站怎么用短视频代运营方案策划书
  • 中小型网站建设与管理seo指的是搜索引擎营销
  • 书画网站建设方案策划网络营销具有哪些特点
  • 旅游公网站如何做单页面seo搜索引擎优化
  • 广州海珠网站设计无锡百度快照优化排名
  • 建立网站需要多少钱萍畜湖南岚鸿首选seo销售话术开场白
  • 常州哪些网站公司做的好app推广员好做吗
  • 万网域名抢注网站优化排名易下拉效率
  • 网页设计基础实训目的台州关键词优化推荐
  • wpf可以做网站吗今天刚刚发生的新闻
  • 迁安做网站中的cms润强杭州排名优化软件
  • 专业的网站建设与优化百度指数批量
  • 隐藏功能wordpressseo长尾快速排名