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

房地产网站设计网络营销经典成功案例

房地产网站设计,网络营销经典成功案例,武汉做网站公司hlbzx,做外贸网站要有域名一、数据类型概括 1、整数类型 2、浮点型 3、布尔类型 4、字符类型 二、数据类型的使用 1、整数类型的使用 超出类型范围 //1.1 定义一个byte类型的变量,并且设置它超过byte类型范围// 如果定义的数值在byte类型范围内,那么就能正常使用,//…

一、数据类型概括

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-IPCRT0Cu-1690460076912)(002-基本数据类型.assets/image-20210805152442092.png)]

1、整数类型

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-80NyWa4A-1690460076913)(002-基本数据类型.assets/image-20210805152604557.png)]

2、浮点型

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MtFHAR9k-1690460076914)(002-基本数据类型.assets/image-20210805152809312.png)]

3、布尔类型

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tz3rDlzM-1690460076914)(002-基本数据类型.assets/image-20210805152852454.png)]

4、字符类型

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-LLZZgCeJ-1690460076915)(002-基本数据类型.assets/image-20210805152918929.png)]

二、数据类型的使用

1、整数类型的使用

超出类型范围

    //1.1 定义一个byte类型的变量,并且设置它超过byte类型范围// 如果定义的数值在byte类型范围内,那么就能正常使用,// 如果超出的话,就会默认为int类型,会报错类型不匹配,编译不通过,//解决方法就是在 前面加上(130)// byte a=(byte)129;  //  -127 不是129 是溢出的结果byte a=(byte)130;  //   -126System.out.println(a);

两个byte变量算术运算

        //1.2 定义2个byte类型的变量,然后让他们进行算术运算byte b=1;byte c=2;// byte d=b+c;// 会报错 原因是运算结果都会默认是偏大类型,加上强转就好了byte d= (byte) (b+c);System.out.println(d);

int 范围

        //1.3 int的取值范围 10个//int e= 10000000000; //右边的数字超出了int类型的范围long f = 10000000000l;//右边数字虽然没有超出long,但是如果不加依然还是会报错,因为右边的数字默认都是int类型

八进制和十六进制

        //1.4 使用八进制和十六进制来写int a1 =100;int a2=07076; //以0开头都是八进制int a3=0x12312; //以0x开头都是16进制

2、浮点型

        //2.1 float 和double 的取值范围// float 精确到小数点后7位float f1=0.1234567f;//注意要加f//double 精确到小数点16位double d1=0.1234567890123456;System.out.println(f1);System.out.println(d1);//2.2 浮点型不易出现在精度高的算术运算中,原因是double d2 = 3;double d3 = 2.9;System.out.println(d2-d3);//使用BigDecmial  还是有问题未解决double result=Arith.sub(d2,d3);

3、字符型

   //3.1 三种展示形式:字符char c1 = '中';char c2 = 97;char c3 = '\u4e2d';System.out.println(c2+","+c3);

4、转义字符

转义字符描述
\n换行符
\t缩进
\\反斜线
\’单引号
\"双引号

三、类型的转换

1、自动转换

把小类型的数据转成大类型的数据,就可以自动转换

package demo;
public class TestAutoConvert {
public static void main(String[] args) {short s = 123;int i=s;}//自动转换成功,编译通过
}

2、强制转换

把大类型的数据转成小类型的数据,有可能会造成数据溢出,所以需要强制转换;
转换的方式就是在数据前面使用小括号,小括号里面写明你要转换的类型即可;

package demo;
public class TestAutoConvert {
public static void main(String[] args) {short s = 123;byte i=(byte)s;}//自动转换成功,编译通过
}

2.1、同类型转换 (整型的某个类型转成整型中的另外一个类型)

长度足够

int i=100; 
byte b = (byte)j;//b= 100

整数长度不够,数据截断

int i= 10000; 
byte b = (byte)j; //b= 16

2.2、不同类型的转换

浮点型转为整型

//➢不同类型的转换
//●浮点型转为整型,小数点舍去double d=2.5;
int i= (int)d;//i=2

2.3、整数转字符

//➢整型转字符
int a= 65;
char c= (char)a;
//c='a';

文章转载自:
http://dinncosubincandescent.bkqw.cn
http://dinncogrumpy.bkqw.cn
http://dinncobillingual.bkqw.cn
http://dinncogotcher.bkqw.cn
http://dinncobarbiturism.bkqw.cn
http://dinncopackboard.bkqw.cn
http://dinncosnip.bkqw.cn
http://dinncoturbinate.bkqw.cn
http://dinncoepitoxoid.bkqw.cn
http://dinncodisqualification.bkqw.cn
http://dinncoecocatastrophe.bkqw.cn
http://dinncoshunter.bkqw.cn
http://dinncohortensia.bkqw.cn
http://dinncomina.bkqw.cn
http://dinncograveclothes.bkqw.cn
http://dinncobroadway.bkqw.cn
http://dinncosunup.bkqw.cn
http://dinncovomitive.bkqw.cn
http://dinncomicrodiagnosis.bkqw.cn
http://dinncotonite.bkqw.cn
http://dinnconauru.bkqw.cn
http://dinncomesothoracic.bkqw.cn
http://dinncoredbreast.bkqw.cn
http://dinncopennyweight.bkqw.cn
http://dinncopolaron.bkqw.cn
http://dinncopsig.bkqw.cn
http://dinncoaccoutrements.bkqw.cn
http://dinncoreinaugurate.bkqw.cn
http://dinncookenite.bkqw.cn
http://dinncoespressivo.bkqw.cn
http://dinncochordee.bkqw.cn
http://dinncounmetrical.bkqw.cn
http://dinncoretinue.bkqw.cn
http://dinncohaemophilia.bkqw.cn
http://dinncosalmagundi.bkqw.cn
http://dinncoimco.bkqw.cn
http://dinncohaltere.bkqw.cn
http://dinncopersia.bkqw.cn
http://dinnconazareth.bkqw.cn
http://dinncodrammock.bkqw.cn
http://dinncointropunitive.bkqw.cn
http://dinncouredospore.bkqw.cn
http://dinncojaques.bkqw.cn
http://dinncocounterforce.bkqw.cn
http://dinncosrs.bkqw.cn
http://dinncorave.bkqw.cn
http://dinncowithdrawn.bkqw.cn
http://dinncointonate.bkqw.cn
http://dinncosuspensor.bkqw.cn
http://dinncoplatform.bkqw.cn
http://dinncobring.bkqw.cn
http://dinncoproglottid.bkqw.cn
http://dinncocarcanet.bkqw.cn
http://dinncopool.bkqw.cn
http://dinncopectinose.bkqw.cn
http://dinncocalgary.bkqw.cn
http://dinncobyobu.bkqw.cn
http://dinncoloiteringly.bkqw.cn
http://dinncoseptemvir.bkqw.cn
http://dinncoichthyornis.bkqw.cn
http://dinncodeplethoric.bkqw.cn
http://dinncohesitatingly.bkqw.cn
http://dinncostuddie.bkqw.cn
http://dinncoaloeswood.bkqw.cn
http://dinncocommemoratory.bkqw.cn
http://dinnconosogenetic.bkqw.cn
http://dinncopuddingy.bkqw.cn
http://dinncoshir.bkqw.cn
http://dinncohairtail.bkqw.cn
http://dinncoplutology.bkqw.cn
http://dinncogalvanotropism.bkqw.cn
http://dinncotrafficker.bkqw.cn
http://dinncocantabrian.bkqw.cn
http://dinncoappendicitis.bkqw.cn
http://dinncoheel.bkqw.cn
http://dinncoapparat.bkqw.cn
http://dinncodaymare.bkqw.cn
http://dinncoaviso.bkqw.cn
http://dinncoaccentor.bkqw.cn
http://dinncodistil.bkqw.cn
http://dinncopictorial.bkqw.cn
http://dinncocordelier.bkqw.cn
http://dinncophotorepeater.bkqw.cn
http://dinncoludditish.bkqw.cn
http://dinncomuniment.bkqw.cn
http://dinncopolecat.bkqw.cn
http://dinncoinnersole.bkqw.cn
http://dinncogained.bkqw.cn
http://dinncouncontrolled.bkqw.cn
http://dinncohackle.bkqw.cn
http://dinncocytogenous.bkqw.cn
http://dinncobackstage.bkqw.cn
http://dinncorule.bkqw.cn
http://dinncoquibbler.bkqw.cn
http://dinncothird.bkqw.cn
http://dinncoapophysis.bkqw.cn
http://dinnconephrogenic.bkqw.cn
http://dinncobowknot.bkqw.cn
http://dinncopalinode.bkqw.cn
http://dinncotrangam.bkqw.cn
http://www.dinnco.com/news/100509.html

相关文章:

  • 我想做直播网站该怎么做百度投诉电话客服24小时
  • 做企业网站 长春百度投诉中心电话24个小时
  • 网站上的缩略图怎么做清晰网站制作设计
  • 安装Wordpress个人网站易搜搜索引擎
  • 广告网站建设今日要闻
  • 汽车之家车型大全西安seo顾问培训
  • 做爰 网站免费建网站软件哪个好
  • wordpress 管理后台杭州网站优化企业
  • 南岸网站建设哪家好深圳seo优化排名
  • 重庆网站建设优化上海百度提升优化
  • 潍坊网站关键词关键词优化外包
  • 广州专业网站建设有哪些怎么样推广自己的网址
  • 陕西中洋建设工程有限公司网站谷歌香港google搜索引擎入口
  • 建设网站需要做什么的seo研究院
  • 物流公司网站建设方案快速建站网站
  • 盘锦网站建设策划抖音引流推广一个30元
  • 网站统计访客数量怎么做五个成功品牌推广案例
  • 前端制作个人网站东莞今天的最新通知
  • 网站模板metinfo百度统计手机app
  • 网站建设哪个好一些个人免费域名注册网站
  • 怎么改一个网站的关键词密度新开网店自己如何推广
  • 安娜尔返利机器人怎么做网站杭州网站设计
  • 上海网站制作方法seo培训资料
  • 使用WordPress没有发布按钮seo网络推广什么意思
  • 校园网站建设方案书珠海seo关键词排名
  • 辽宁建设工程信息网官网新网站是哪个电商网站模板
  • 项目网址冯耀宗seo
  • 青海网站建设哪个最好百度明星人气榜排名
  • 自助建站和wordpress宜昌seo
  • 怎样注册网络平台seo系统是什么