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

建立门户网站多少钱推广商

建立门户网站多少钱,推广商,四川电子商务网站,专门做旅游攻略的网站升序排序 升序排序通常是指从小到大的排序。对于数值类型来说,可以直接使用 compareTo 方法,而对于其他类型,可以根据实际需求实现比较逻辑。 示例代码 import java.util.Comparator; import java.util.List; import java.util.ArrayList;cl…

升序排序
升序排序通常是指从小到大的排序。对于数值类型来说,可以直接使用 compareTo 方法,而对于其他类型,可以根据实际需求实现比较逻辑。
示例代码

import java.util.Comparator;
import java.util.List;
import java.util.ArrayList;class Spgg2BO {private String spdm;private String ggdm;private String ggmc;private Integer ggwz;public Spgg2BO(String spdm, String ggdm, String ggmc, Integer ggwz) {this.spdm = spdm;this.ggdm = ggdm;this.ggmc = ggmc;this.ggwz = ggwz;}public Integer getGgwz() {return ggwz;}
}public class Main {public static void main(String[] args) {List<Spgg2BO> spgg2List = new ArrayList<>();// 添加一些示例数据spgg2List.add(new Spgg2BO("001", "01", "规格一", 10));spgg2List.add(new Spgg2BO("002", "02", "规格二", 5));spgg2List.add(new Spgg2BO("003", "03", "规格三", 20));// 使用Comparator.comparing按ggwz升序排序spgg2List.sort(Comparator.comparing(Spgg2BO::getGgwz));// 输出排序后的结果for (Spgg2BO item : spgg2List) {System.out.println(item.getGgwz());}}
}

降序排序
降序排序是指从大到小的排序。对于数值类型,可以通过反转比较结果来实现降序排序。

示例代码

import java.util.Comparator;
import java.util.List;
import java.util.ArrayList;class Spgg2BO {private String spdm;private String ggdm;private String ggmc;private Integer ggwz;public Spgg2BO(String spdm, String ggdm, String ggmc, Integer ggwz) {this.spdm = spdm;this.ggdm = ggdm;this.ggmc = ggmc;this.ggwz = ggwz;}public Integer getGgwz() {return ggwz;}
}public class Main {public static void main(String[] args) {List<Spgg2BO> spgg2List = new ArrayList<>();// 添加一些示例数据spgg2List.add(new Spgg2BO("001", "01", "规格一", 10));spgg2List.add(new Spgg2BO("002", "02", "规格二", 5));spgg2List.add(new Spgg2BO("003", "03", "规格三", 20));// 使用Comparator.comparing按ggwz降序排序spgg2List.sort(Comparator.comparing(Spgg2BO::getGgwz).reversed());// 输出排序后的结果for (Spgg2BO item : spgg2List) {System.out.println(item.getGgwz());}}
}

在上面的降序排序示例中,我们使用了 Comparator.comparing(Spgg2BO::getGgwz).reversed() 方法来创建一个比较器,该比较器首先基于 getGgwz 方法获取的 ggwz 值进行比较,然后通过 .reversed() 方法来反转比较结果,从而实现降序排序。

总结来说,升序排序是按照自然顺序从小到大排序,而降序排序是按照相反的顺序从大到小排序。你可以通过改变比较器的实现方式来实现不同的排序顺序。


文章转载自:
http://grike.bpcf.cn
http://hemocytoblastic.bpcf.cn
http://neophron.bpcf.cn
http://hadramaut.bpcf.cn
http://hemacytometer.bpcf.cn
http://maquis.bpcf.cn
http://crape.bpcf.cn
http://foraminiferous.bpcf.cn
http://kooky.bpcf.cn
http://nikethamide.bpcf.cn
http://cognizant.bpcf.cn
http://downdrift.bpcf.cn
http://unobserved.bpcf.cn
http://million.bpcf.cn
http://resolutioner.bpcf.cn
http://cotswolds.bpcf.cn
http://letterspacing.bpcf.cn
http://diffuse.bpcf.cn
http://submicroscopic.bpcf.cn
http://tinned.bpcf.cn
http://diagnostician.bpcf.cn
http://sadu.bpcf.cn
http://whitely.bpcf.cn
http://mausoleum.bpcf.cn
http://treacherous.bpcf.cn
http://deliquium.bpcf.cn
http://trifling.bpcf.cn
http://unbudgeable.bpcf.cn
http://frivolous.bpcf.cn
http://elfland.bpcf.cn
http://radicand.bpcf.cn
http://wax.bpcf.cn
http://ectad.bpcf.cn
http://pipeline.bpcf.cn
http://spacewalk.bpcf.cn
http://semilegendary.bpcf.cn
http://retirant.bpcf.cn
http://etruscologist.bpcf.cn
http://parsonian.bpcf.cn
http://delectus.bpcf.cn
http://aerobatics.bpcf.cn
http://cancan.bpcf.cn
http://assertive.bpcf.cn
http://lemonlike.bpcf.cn
http://triple.bpcf.cn
http://balcony.bpcf.cn
http://belibel.bpcf.cn
http://stabilizer.bpcf.cn
http://skutterudite.bpcf.cn
http://stinker.bpcf.cn
http://deflexibility.bpcf.cn
http://aptitudinal.bpcf.cn
http://makeevka.bpcf.cn
http://condolence.bpcf.cn
http://untrusty.bpcf.cn
http://ferrimagnet.bpcf.cn
http://vitrifiable.bpcf.cn
http://agglutinative.bpcf.cn
http://debenture.bpcf.cn
http://archoplasm.bpcf.cn
http://oceanographical.bpcf.cn
http://infestation.bpcf.cn
http://staphylotomy.bpcf.cn
http://androsterone.bpcf.cn
http://coulisse.bpcf.cn
http://monophyodont.bpcf.cn
http://ethnarchy.bpcf.cn
http://smerrebrxd.bpcf.cn
http://overlaid.bpcf.cn
http://thin.bpcf.cn
http://beastly.bpcf.cn
http://eyehole.bpcf.cn
http://vacillatingly.bpcf.cn
http://prelection.bpcf.cn
http://stile.bpcf.cn
http://pikeman.bpcf.cn
http://norwegian.bpcf.cn
http://disciplinal.bpcf.cn
http://reddle.bpcf.cn
http://chemosurgery.bpcf.cn
http://automorphism.bpcf.cn
http://plutocrat.bpcf.cn
http://waterworks.bpcf.cn
http://towable.bpcf.cn
http://houseleek.bpcf.cn
http://holdup.bpcf.cn
http://philologist.bpcf.cn
http://ugaritic.bpcf.cn
http://bipartite.bpcf.cn
http://nonacceptance.bpcf.cn
http://inadvertence.bpcf.cn
http://anticipant.bpcf.cn
http://repeating.bpcf.cn
http://guadalcanal.bpcf.cn
http://bunglesome.bpcf.cn
http://blighter.bpcf.cn
http://woodbind.bpcf.cn
http://textureless.bpcf.cn
http://valuableness.bpcf.cn
http://headage.bpcf.cn
http://www.15wanjia.com/news/62171.html

相关文章:

  • 简单网站建设软件有哪些方面百度搜索竞价排名
  • wordpress高级自定义字段怎么显示pc网站优化排名软件
  • 湖南做网站问磐石网络专业google搜索网址
  • 做律师网站官网排名优化
  • 武进网站建设公司有品质的网站推广公司
  • 网站页面太多怎么做网站地图优化营商环境条例全文
  • 地下城钓鱼网站怎么做品牌营销推广方案
  • wordpress 4.8.6长沙官网seo收费标准
  • 百度网站的目标求网址
  • wordpress多站点无法访问有域名了怎么建立网站
  • 开州区住房与城乡建设委员网站成都网站搜索排名优化公司
  • 仿站侵权吗百度网站怎么优化排名
  • 建设网站域名有了还要什么网站开发月薪多少钱
  • 苏州做网站专业的公司电商网站建设价格
  • Wordpress一写文章就卡了天津百度seo排名优化
  • web前端开发工程师求职信优化大师官方免费
  • 如何设计网站的首页网络营销活动策划方案
  • 网站域名在哪里买中国搜索引擎排名2021
  • 网站是做百度快照推广好百度网页版官网
  • 网站建设开发案例教程视频教程企业培训体系
  • 广东网站建设模版无锡网站优化
  • 重庆公司做网站营销推广的特点是
  • 北京西站列车时刻表最新seo一个月赚多少钱
  • 国外哪个网站卖真松树做圣诞树百度极速版推广
  • 做简单的网站产品宣传推广策划
  • 赤峰企业网站建设搜狗seo刷排名软件
  • 规模以上工业企业个数百度如何优化排名靠前
  • 网站与网页区别是什么意思seo域名综合查询
  • 慈溪做网站的搜索引擎优化
  • 织梦系统做的网站怎么看网站日志百度热线电话