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

网站建设代理平台有哪些注册公司场地有什么要求

网站建设代理平台有哪些,注册公司场地有什么要求,wordpress 流量数据,网站做什么推广好Arrays类#xff1a; java.util.Arrays是一个与数组相关的工具类#xff0c;提供了许多静态方法对数组进行操作#xff0c;直接通过类点出来使用#xff0c;无需创建对象。 // 1.Arrays类存在与java.util下#xff0c;需要导包#xff1a; import java.util.Arrays; pu…Arrays类 java.util.Arrays是一个与数组相关的工具类提供了许多静态方法对数组进行操作直接通过类点出来使用无需创建对象。 // 1.Arrays类存在与java.util下需要导包 import java.util.Arrays; public class ArraysMethod{public static void main(String[] args){// 2.Arrays下toString(数组)方法可以将数组转换为字符串格式如int[] arrInt {1,3,5,2,4};String arrStr Arrays.toString(arrInt);System.out.println(arrStr);//[1, 3, 5, 2, 4],数组无法直接打印这里打印的是字符串// 3.Arrays下sort方法可以对数组元素进行正序排序数字按照从小到大字母按照从前到后字符串按照字节码从小到大如int[] array {1,4,3,2,5};Arrays.sort(array);//sort方法返回值为void类型可以直接打印原数组即可如String arrSortStr Arrays.toString(array);//转换为字符串后在打印System.out.println(arrSortStr);//[1, 2, 3, 4, 5]}; }Math类 Math类存在于java.lang下适用于基本的数学运算可以不用创建对象直接使用静态方法即可如 // 1.导包:存在java.lang下的包可以省略导包步骤import java.lang.Math; public class MathTest{public static void main(String[] args){// 2-1:Math.abs(number),用于取number的绝对值如System.out.println(Math.abs(-2));//2System.out.println(Math.abs(-2.5));//2.5System.out.println(Math.abs(2.5));//2.5System.out.println(Math.abs(2));//2// 2-2:Math.ceil(number),用于number向上取整如System.out.println(Math.ceil(5.2));//6.0System.out.println(Math.ceil(-5.2));//-5.0System.out.println(Math.ceil(-5));//-5.0System.out.println(Math.ceil(5));//5.0System.out.println(Math.ceil(5.8));//6.0System.out.println(Math.ceil(-5.8));//-5.0// 2-3Math.floor(number),用于number向下取整如System.out.println(Math.floor(2.8));//2.0System.out.println(Math.floor(-2.8));//-3.0System.out.println(Math.floor(3));//3.0System.out.println(Math.floor(-3));//-3.0System.out.println(Math.floor(6.2));//6.0System.out.println(Math.floor(-6.2));//-7.0// 2-4:Math.round(number),用于number四舍五入如System.out.println(Math.round(2.3));//2System.out.println(Math.round(-2.3));//-2System.out.println(Math.round(3.6));//4System.out.println(Math.round(-3.6));//-4System.out.println(Math.round(5));//5System.out.println(Math.round(-5));//-5// 2-5:Math.PI,一个接近圆周率π的常量值System.out.println(Math.PI);//3.141592653589793// 2-6:Math.max(num1,num2),返回num1和num2中较大的值如System.out.println(Math.max(2,6));//6System.out.println(Math.max(2,-6));//2System.out.println(Math.max(-2,-6));//-2System.out.println(Math.max(-2.1,-6.1));//-2.1// 2-7:Math.min(num1,num2),返回num1和num2中较小的值如System.out.println(Math.min(2,6));//2System.out.println(Math.min(2,-6));//-6System.out.println(Math.min(-2,-6));//-6System.out.println(Math.min(-2.1,-6.1));//-6.1// 更过方法请到官方文档查阅。} }提示本文图片等素材来源于网络若有侵权请发邮件至邮箱810665436qq.com联系笔者删除。 笔者苦海
http://www.zqtcl.cn/news/800236/

相关文章:

  • 企业门户网站建设优势网站登录模版
  • 六盘水建设网站徐州建站平台
  • 昆明有多少做网站的公司公司软文代写
  • 东莞模板网站做一个电子商务网站在哪里做
  • 给别人网站做跳转株洲专业网站排名优化
  • 国外网站空间租用费用网站前端设计图
  • 宜州做网站点点网 xml转wordpress
  • 太原建站方法erp系统好上手吗
  • 网站建设如何实现检索功能河南城乡建设网站
  • 江苏做电缆桥架的公司网站购物网站答辩ppt怎么做
  • 惠州网站建设系统公司公司网站建设公司
  • 做酒类直供网站行吗石家庄桥西网站制作公司
  • 电子商务门户网站的研究与实现漳州做网站多少钱
  • 咖啡网站源码呼和浩特网站建设价位
  • 邯郸哪儿能做网站广州冼村房价多少钱
  • 网站建设开发成本设计素材库
  • wordpress获取站点链接wordpress 滑动验证
  • 怎么把网站上的通栏手机公司网站建设
  • 微山县建设局官方网站wordpress 内容换行
  • 网站选择空间ps个人主页设计
  • 河北网站seo外包网站嵌入百度地图
  • 公司怎么开网站WordPress有哪些工具
  • 一流专业建设网站原平新闻头条最新消息
  • 网站开发文档模板 开源北京保障房建设项目网站
  • 营销型网站分类网站关键词如何快速上首页
  • 帝国和WordPress比较wordpress文章页标题优化
  • 宁晋网站建设温岭新站seo
  • 大学科研项目做网站成都免费建站模板
  • 兰州网站开发企业在微信公众号发布wordpress
  • 网站信息化建设总体情况网站建设介绍ppt模板下载