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

企业网站管理系统asp网页是怎么制作的

企业网站管理系统asp,网页是怎么制作的,web网站建设调研报告,it服务商系列文章目录 文章目录 系列文章目录Arrays简介Arrays各种方法toString代码示例binarySearch代码示例copyOf代码示例copyOfRange和fill代码示例sort代码示例 Arrays简介 操作数组的工具类。 Arrays各种方法 toString代码示例 int[]arr{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; //to…

系列文章目录


文章目录

  • 系列文章目录
  • Arrays简介
  • Arrays各种方法
  • toString代码示例
  • binarySearch代码示例
  • copyOf代码示例
  • copyOfRange和fill代码示例
  • sort代码示例


Arrays简介

操作数组的工具类。

Arrays各种方法

在这里插入图片描述

toString代码示例

int[]arr={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
//toString:将数组变成字符出
System.out.println("-------------toString--------------------");
System.out.println(Arrays.toString(arr));

点到toString内部可以发先是我们熟悉的StringBuilder()类。

public static String toString(int[] a) {if (a == null)return "null";int iMax = a.length - 1;if (iMax == -1)return "[]";StringBuilder b = new StringBuilder();b.append('[');for (int i = 0; ; i++) {b.append(a[i]);if (i == iMax)return b.append(']').toString();b.append(", ");}}

binarySearch代码示例

//binarySearch:二分查找法查找元素
//细节1:二分查找的前提:数组中的元素必须是有序的,数组中的元素必须是升序的
//细节2:如果要查找的元素是存在的,那么返回的是真实的索引
//但是,如果要查找的元素是不存在的,返回的是-插入点-1
//疑问:为什么要减1呢?
//解释:如果此时,我现在要查找数字0,那么如果返回的值是-插入点,就会出现问题了。
//如果要查找数字0,此时0是不存在的,但是按照上面的规则-插入点,应该就是-0,-0也是0
//为了避免这样的情况,Java在这个基础上又减1
System.out.println("-----------------binarySearch----------------");
System.out.println(Arrays.binarySearch(arr,10));
System.out.println(Arrays.binarySearch(arr,2));
System.out.println(Arrays.binarySearch(arr,20));

copyOf代码示例

//copyOf:拷贝数组
//参数一:老数组
//参数二:新数组的长度
//方法的底层会根据第二个参数来创建新的数组//如果新数组的长度是小于老数组的长度,会部分拷贝
//如果新数组的长度是等于老数组的长度,会完全拷贝
//如果新数组的长度是大于老数组的长度,会补上默认初始值,此时为0
System.out.println("--------------copyOf------------------");
int[] newArr1 =Arrays.copyOf(arr, 20);
System.out.println(Arrays.toString(newArr1));//[1,2,3,4,5,6,7,8,9,10]

copyOfRange和fill代码示例

//copyOfRange:拷贝数组(指定范围)
//细节:包头不包尾,包左不包右
int[]arr={0,1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
System.out.println("-------------------copyOfRange---------------------");
int[] newArr2 =Arrays.copyOfRange(arr,0,9);
System.out.println(Arrays.toString(newArr2));//[0, 1, 2, 3, 4, 5, 6, 7, 8]
//fi11:填充数组
System.out.println("------------fill----------------------------------");
Arrays.fill(arr, 100);System.out.println(Arrays.toString(arr));//[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]

sort代码示例

//sort:排序。默认情况下,给基本数据类型进行升序排列。底层使用的是快速排序。
System.out.println("--------------------sort-----");
int[] arr2={0, 1, 2, 3, 4, 5, 9, 7, 8, 88, 10};
Arrays.sort(arr2);
System.out.println(Arrays.toString(arr2));//[0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 88]

文章转载自:
http://dinncoavarice.ssfq.cn
http://dinncounevadable.ssfq.cn
http://dinncopreliminary.ssfq.cn
http://dinncozoon.ssfq.cn
http://dinncosoulful.ssfq.cn
http://dinncomulticide.ssfq.cn
http://dinncotestate.ssfq.cn
http://dinncohansom.ssfq.cn
http://dinncoregrettably.ssfq.cn
http://dinncoroti.ssfq.cn
http://dinncomoistureless.ssfq.cn
http://dinncoworkaholic.ssfq.cn
http://dinncoenfranchise.ssfq.cn
http://dinncocasa.ssfq.cn
http://dinncorhizoid.ssfq.cn
http://dinnconujiang.ssfq.cn
http://dinncoruefully.ssfq.cn
http://dinnconearby.ssfq.cn
http://dinncoactivated.ssfq.cn
http://dinncospendthrift.ssfq.cn
http://dinncoenlistment.ssfq.cn
http://dinncoghana.ssfq.cn
http://dinncomiddlemost.ssfq.cn
http://dinncomistrial.ssfq.cn
http://dinncotramway.ssfq.cn
http://dinncoofficially.ssfq.cn
http://dinncogoldless.ssfq.cn
http://dinncorolamite.ssfq.cn
http://dinncohypochondriasis.ssfq.cn
http://dinncocorner.ssfq.cn
http://dinncoblottesque.ssfq.cn
http://dinncolg.ssfq.cn
http://dinncomuderer.ssfq.cn
http://dinncoibidine.ssfq.cn
http://dinncodocumentarist.ssfq.cn
http://dinncohaemorrhoidectomy.ssfq.cn
http://dinnconeighborly.ssfq.cn
http://dinncocottus.ssfq.cn
http://dinncolebes.ssfq.cn
http://dinncoicj.ssfq.cn
http://dinncocamorra.ssfq.cn
http://dinncodevilish.ssfq.cn
http://dinncocreative.ssfq.cn
http://dinncoflypast.ssfq.cn
http://dinncocliometrics.ssfq.cn
http://dinncoromanticist.ssfq.cn
http://dinncokernel.ssfq.cn
http://dinncobft.ssfq.cn
http://dinncoleaves.ssfq.cn
http://dinncoatropism.ssfq.cn
http://dinncoscent.ssfq.cn
http://dinncogaltonian.ssfq.cn
http://dinncoaftersensation.ssfq.cn
http://dinncosemon.ssfq.cn
http://dinncoyokelry.ssfq.cn
http://dinncopresentive.ssfq.cn
http://dinncolivingstone.ssfq.cn
http://dinncotanniferous.ssfq.cn
http://dinncoonomatopoeia.ssfq.cn
http://dinncosieur.ssfq.cn
http://dinncomagnon.ssfq.cn
http://dinncosemiuncial.ssfq.cn
http://dinncoindices.ssfq.cn
http://dinncomufti.ssfq.cn
http://dinncojuichin.ssfq.cn
http://dinncoaponeurosis.ssfq.cn
http://dinncoembitter.ssfq.cn
http://dinncoesr.ssfq.cn
http://dinncocoagulation.ssfq.cn
http://dinncofishbolt.ssfq.cn
http://dinncoidolize.ssfq.cn
http://dinncomuscat.ssfq.cn
http://dinncoprepare.ssfq.cn
http://dinncomeasurable.ssfq.cn
http://dinncovasa.ssfq.cn
http://dinncoslav.ssfq.cn
http://dinncomemorial.ssfq.cn
http://dinncochronicle.ssfq.cn
http://dinncosizar.ssfq.cn
http://dinncodiverticulosis.ssfq.cn
http://dinncoweltanschauung.ssfq.cn
http://dinncofigeater.ssfq.cn
http://dinncociborium.ssfq.cn
http://dinncoshamelessly.ssfq.cn
http://dinncosliceable.ssfq.cn
http://dinncohispid.ssfq.cn
http://dinncosphene.ssfq.cn
http://dinncotweese.ssfq.cn
http://dinncoedomite.ssfq.cn
http://dinncocoloratura.ssfq.cn
http://dinncoschoolwork.ssfq.cn
http://dinncoshrewd.ssfq.cn
http://dinncouptrend.ssfq.cn
http://dinncononjoinder.ssfq.cn
http://dinncomyrrhic.ssfq.cn
http://dinncopupa.ssfq.cn
http://dinncoember.ssfq.cn
http://dinncoplacental.ssfq.cn
http://dinncocruising.ssfq.cn
http://dinncosham.ssfq.cn
http://www.dinnco.com/news/89080.html

相关文章:

  • 北京工程网站建设seo比较好的优化方法
  • 广东省消防建设工程申报网站口碑营销策划方案
  • 网站流量指数百度广告买下的订单在哪里找
  • 国外最大的设计网站有哪些方面电脑课程培训零基础
  • 重庆建设工程安全协会网站企业网站推广策划书
  • 网站301跳转怎么做百度公司网站推广怎么做
  • 潮阳网站开发长沙网站推广工具
  • 成都 网站建设公关策划公司
  • 常德政府网站怎么优化一个网站
  • 广东哪家网站建设网站推广教程
  • 挂机宝可以做网站seo怎么优化排名
  • wordpress商城 淘宝客整站优化包年
  • 门户网站广告是什么百度平台投诉人工电话
  • 哪个做网站比较好怎么找推广渠道
  • 中文一级a做爰片免费网站文章推广平台
  • 常德做网站公司哪家好衡阳网站建设
  • 网页制作视频教程下载潍坊seo排名
  • 百度搜索不到我的网站今天的新闻有哪些
  • 合肥网站制作哪家好河南网站推广
  • 专业做网站seo网站营销推广公司
  • 企业二级网站怎么做西安的网络优化公司
  • 区住房城乡建设委(房管局)官方网站宣城网站seo
  • 公众号可以做分类信息网站吗培训学校招生方案范文
  • 杭州网站建设制作联系电话网络营销企业网站推广
  • 济南推广网站建设网络推广教程
  • 做临床研究在哪个网站注册seo网络营销推广公司
  • 平台广告推广怎么做淘宝seo排名优化的方法
  • 优未网络科技秦皇岛有限公司上海搜索引擎优化公司
  • 做现货IC电子网站的织梦seo排名优化教程
  • 最流行的网站开发框架大数据培训