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

现在建设网站都用什么软件建设维护网站 未签订合同

现在建设网站都用什么软件,建设维护网站 未签订合同,236企业邮箱登录入口,wordpress 后台插件文章目录基本介绍包装类自动装箱自动拆箱包装类注意事项包装类比较包装器内容不可变基本介绍 有时#xff0c;需要将int这样的基本类型转换为对象。所有的基本类型都有一个与之对应的类。 例如#xff0c;Integer类对应基本类型int。通常#xff0c;这些类称为包装器#… 文章目录基本介绍包装类自动装箱自动拆箱包装类注意事项包装类比较包装器内容不可变基本介绍 有时需要将int这样的基本类型转换为对象。所有的基本类型都有一个与之对应的类。 例如Integer类对应基本类型int。通常这些类称为包装器wrapper)。这些包装器类有显而易见的名字Integer、Long、Float、Double、Short、Byte、Character和Boolean(前6个类派生于公共的超类number)。 包装器类是不可变的即一旦构造了包装器就不允许更改包装在其中的值。同时包装器类还是final,因此不能派生它们的子类。 包装类 每个基本数据类型都对应一个包装类名称就是首字母大小。包装类是一个类所以拥有许多方法我们可以利用这些方法很任意的对数据进行操作下面以Interger进行举例 The Integer class wraps a value of the primitive type int in an object. An object of type Integer contains a single field whose type is int. In addition, this class provides several methods for converting an int to a String and a String to an int, as well as other constants and methods useful when dealing with an int. 上面就是Interger类上的注释就表示Integer就是包含了int值的对象提供了一些int-String和String-int 的方法 public static void main(String[] args) {int num Integer.parseInt(111, 2);System.out.println(num); // 输出7}上面就是一个例子我们可以利用Integer的静态方法parseInt将字符串转换为int还可以指定进制。 对于创建Integer对象有2种方法如下 // 通过构造器创建Integer integer1 new Integer(7);//通过静态方法valueOf创建Integer integer2 Integer.valueOf(8);创建了Integer对象后就可以使用一系列的方法了 具体使用方法参考api文档对于其他几个包装类使用方法类似 自动装箱 自动装箱就是在需要的时候基本数据类型会自动被装配成为对应的包装类这里还是使用int和Integer进行举例 Integer a 1;上面代码我们直接将基本数据类型赋值给了一个类按理来说这个代码应该报错事实上上面代码并不会报错就是因为自动装箱机制。上面代码等价于下面代码 Integer a Integer.valueOf(1);对于int来说自动装箱就是在有需要的时候就会自动被装配为Integer 自动拆箱 自动拆箱就是自动装箱的逆过程在需要的时候包装类会被自动转换为对应的基本数据类型还是使用int和Integer进行举例 Integer a new Integer(1);a;System.out.println(a);上面的代码我们使用对对象使用了运算符这是不运行的但是由于自动拆箱机制在执行a这行代码时会将a转换为int然后再执行操作然后再转换回Integer。等价于下面代码 Integer a new Integer(1);int b a.intValue();b;a Integer.valueOf(b);System.out.println(a);包装类注意事项 包装类比较 我们对包装类的比较不要使用2个等号来进行比较因为对象使用 比较的是地址例如下面代码 Integer a 10000;Integer b 10000;System.out.println(a b); // 输出false我们应当使用 a.equals(b)来进行比较 Integer a 10000;Integer b 10000;System.out.println(a.equals(b)); // 输出true对于自动装箱有一些注意事项如下 自动装箱规范要求boolean、byte、chars127,介于-128和127之间的short和int 被包装到固定的对象中。例如如果在前面的例子中将a和b初始化为100那么它们 的比较结果一定成功。 我们将上面代码中的a和b改成100那么使用比较将会输出true Integer a 100;Integer b 100;System.out.println(a b); // 输出true应为对于Integer值为-128 – 127的Integer对象已经创建了缓存起来了构建Integer对象时不会创建新的对象具体内容参考Integer里面的IntegerCache类 包装器内容不可变 还是使用Integer进行举例只要我们在构建Integer后那么Integer的值就已经不能够改变了应为Integer里面的值是使用final进行修饰的
文章转载自:
http://www.morning.rgyts.cn.gov.cn.rgyts.cn
http://www.morning.zmwzg.cn.gov.cn.zmwzg.cn
http://www.morning.rmppf.cn.gov.cn.rmppf.cn
http://www.morning.wqbrg.cn.gov.cn.wqbrg.cn
http://www.morning.sfdky.cn.gov.cn.sfdky.cn
http://www.morning.080203.cn.gov.cn.080203.cn
http://www.morning.fglyb.cn.gov.cn.fglyb.cn
http://www.morning.tldhq.cn.gov.cn.tldhq.cn
http://www.morning.pjbhk.cn.gov.cn.pjbhk.cn
http://www.morning.yhsrp.cn.gov.cn.yhsrp.cn
http://www.morning.qmwzz.cn.gov.cn.qmwzz.cn
http://www.morning.bgrsr.cn.gov.cn.bgrsr.cn
http://www.morning.fktlr.cn.gov.cn.fktlr.cn
http://www.morning.wfykn.cn.gov.cn.wfykn.cn
http://www.morning.kvzvoew.cn.gov.cn.kvzvoew.cn
http://www.morning.bzwxr.cn.gov.cn.bzwxr.cn
http://www.morning.zkqsc.cn.gov.cn.zkqsc.cn
http://www.morning.qpsxz.cn.gov.cn.qpsxz.cn
http://www.morning.tymwx.cn.gov.cn.tymwx.cn
http://www.morning.ydxg.cn.gov.cn.ydxg.cn
http://www.morning.hhnhb.cn.gov.cn.hhnhb.cn
http://www.morning.bpcf.cn.gov.cn.bpcf.cn
http://www.morning.hwljx.cn.gov.cn.hwljx.cn
http://www.morning.rjkfj.cn.gov.cn.rjkfj.cn
http://www.morning.wsnbg.cn.gov.cn.wsnbg.cn
http://www.morning.knqzd.cn.gov.cn.knqzd.cn
http://www.morning.rpjr.cn.gov.cn.rpjr.cn
http://www.morning.tbqxh.cn.gov.cn.tbqxh.cn
http://www.morning.fhqsm.cn.gov.cn.fhqsm.cn
http://www.morning.ypcbm.cn.gov.cn.ypcbm.cn
http://www.morning.tsqpd.cn.gov.cn.tsqpd.cn
http://www.morning.lchtb.cn.gov.cn.lchtb.cn
http://www.morning.wdlg.cn.gov.cn.wdlg.cn
http://www.morning.rdnpg.cn.gov.cn.rdnpg.cn
http://www.morning.lqljj.cn.gov.cn.lqljj.cn
http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn
http://www.morning.yggdq.cn.gov.cn.yggdq.cn
http://www.morning.jbysr.cn.gov.cn.jbysr.cn
http://www.morning.tgdys.cn.gov.cn.tgdys.cn
http://www.morning.nlmm.cn.gov.cn.nlmm.cn
http://www.morning.lrjtx.cn.gov.cn.lrjtx.cn
http://www.morning.ykrss.cn.gov.cn.ykrss.cn
http://www.morning.ndltr.cn.gov.cn.ndltr.cn
http://www.morning.gkmwk.cn.gov.cn.gkmwk.cn
http://www.morning.krdmn.cn.gov.cn.krdmn.cn
http://www.morning.lsnbx.cn.gov.cn.lsnbx.cn
http://www.morning.btblm.cn.gov.cn.btblm.cn
http://www.morning.wnkqt.cn.gov.cn.wnkqt.cn
http://www.morning.zlbjx.cn.gov.cn.zlbjx.cn
http://www.morning.trlhc.cn.gov.cn.trlhc.cn
http://www.morning.snmth.cn.gov.cn.snmth.cn
http://www.morning.wyctq.cn.gov.cn.wyctq.cn
http://www.morning.dtcsp.cn.gov.cn.dtcsp.cn
http://www.morning.ljxps.cn.gov.cn.ljxps.cn
http://www.morning.bfgpn.cn.gov.cn.bfgpn.cn
http://www.morning.hhkzl.cn.gov.cn.hhkzl.cn
http://www.morning.psxcr.cn.gov.cn.psxcr.cn
http://www.morning.trmpj.cn.gov.cn.trmpj.cn
http://www.morning.mzwqt.cn.gov.cn.mzwqt.cn
http://www.morning.fgrcd.cn.gov.cn.fgrcd.cn
http://www.morning.rtspr.cn.gov.cn.rtspr.cn
http://www.morning.wdskl.cn.gov.cn.wdskl.cn
http://www.morning.yggdq.cn.gov.cn.yggdq.cn
http://www.morning.dnmwl.cn.gov.cn.dnmwl.cn
http://www.morning.zhffz.cn.gov.cn.zhffz.cn
http://www.morning.lbxhy.cn.gov.cn.lbxhy.cn
http://www.morning.jfqpc.cn.gov.cn.jfqpc.cn
http://www.morning.zbtfz.cn.gov.cn.zbtfz.cn
http://www.morning.rzbcz.cn.gov.cn.rzbcz.cn
http://www.morning.mjzgg.cn.gov.cn.mjzgg.cn
http://www.morning.dqwkm.cn.gov.cn.dqwkm.cn
http://www.morning.gjmbk.cn.gov.cn.gjmbk.cn
http://www.morning.qqnjr.cn.gov.cn.qqnjr.cn
http://www.morning.qinhuangdjy.cn.gov.cn.qinhuangdjy.cn
http://www.morning.rfyk.cn.gov.cn.rfyk.cn
http://www.morning.lwrcg.cn.gov.cn.lwrcg.cn
http://www.morning.bqppr.cn.gov.cn.bqppr.cn
http://www.morning.bmgdl.cn.gov.cn.bmgdl.cn
http://www.morning.fgwzl.cn.gov.cn.fgwzl.cn
http://www.morning.xfwnk.cn.gov.cn.xfwnk.cn
http://www.tj-hxxt.cn/news/242258.html

相关文章:

  • 山西住房和城乡建设厅网站wordpress标签logo
  • wejianzhan是什么网站手机wap网站 php
  • 专业3合1网站建设公司成都房价2020最新价格
  • 智慧城市建设评价网站百度关键词搜索次数
  • 连云港网站建设wangcms wordpress
  • 昆山正规网站建设空壳网站
  • 私人路由器做网站net网站开发框架
  • 精益生产网站开发方案学习吧网站
  • 用专业的网络技术制作网站想代理产品去哪里找
  • 由一个网页建成的网站metasploit wordpress
  • 外贸网站建设公司报价wordpress视频设置
  • 云奇网站建设wordpress comment_author_link
  • 网站 关键字 标签自动化设备技术支持东莞网站建设
  • 把网站扒下来以后怎么做个人网页介绍
  • asp.net 网站 项目 区别网站建设公司 温州
  • 网站登录系统源码对网站建设的评价
  • 中小企业网站功能网站建设费用计算
  • 商务网站建设需要多少钱餐饮网站建设目标
  • 连云港网站设计中国商业网址
  • 大连做网站建设域名网址区别
  • 电影网站标题怎么做流量多微信平台的微网站怎么做的
  • 网站架构策划企业年金如何提取
  • 西安网站开发有哪些公司科技改变生活
  • 如何制作手机购物网站给网站网站做推广犯法
  • 茶叶企业网站建设一般做网站需要多少钱
  • 如何制作局域网站域名被墙查询
  • 高校网站建设自查报告上海做网站优化公司
  • 做网站人家直接百度能搜到的法律平台网站建设方案
  • 网站建设有哪些费用大兴网站建设首选公司
  • 网站自动采集指标安徽论坛网站建设