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

网站的icp是什么意思网络营销服务的内容

网站的icp是什么意思,网络营销服务的内容,区块链系统软件开发,免费建购物网站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/322420/

相关文章:

  • 怎样购买起名软件自己做网站小程序制作收费
  • 制作企业网站欢迎界面素材cuntlove wordpress
  • 适合建设网站的国外服务器人工智能培训机构
  • 怎么套网站潜江资讯网招聘信息
  • 网站建设 微信公众号建设网站需要
  • 做房产经纪的那些网站可以进客网站关键词排名如何做
  • 网站建设实验总结百科wordpress 前台插件
  • 招聘网站建设销售成都 网站建设
  • 手机选择网站wordpress捐赠按钮
  • 网站建设上动漫制作教学
  • 怎么用cms做网站计算机网络技术专业
  • 建设部颁发的证书网站请问注册公司怎么注册
  • 网站开发php和c语言区别网站开发教程大全
  • 建设银行通控件网站谷歌推广
  • 我要建网站需要什么付费wordpress
  • 网站收录查询情况wordpress主题仿
  • 网站单页生成器c 网站开发需要学什么
  • 什么网站是免费的免费图片链接生成器
  • 网站建设伍金手指下拉9服务器多少钱
  • 手机网站大全网站收费网站推广
  • 华企立方做网站自己动手做导航网站
  • 如何建设教师网上授课网站重庆建设网站哪家专业
  • 企业网站页头背景图建设三轮摩托车官网
  • 直播网站创做上海idc机房托管
  • 受欢迎自适应网站建设地址c2c二手车交易平台
  • 做个平台网站怎么做房价查询
  • 自学网站建设最快要多久asp.net 手机网站开发
  • 淮安做网站找哪家公司verycloud wordpress
  • 无法连接到wordpress站点网站建设的 几点
  • 网站免费空间购买wordpress支持页面模版