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

厦门市建设局网站摇号自己做的网站提示不安全吗

厦门市建设局网站摇号,自己做的网站提示不安全吗,58同城租房,杭州企业网站题目#xff1a; 1. 定义长方体类Cuboid#xff0c;要求如下#xff1a;#xff08;1#xff09;私有成员变量包括长length、宽width和高height#xff1b;#xff08;2#xff09;构造方法包括一个公共的空构造方法#xff0c;一个能够初始化所有成员变量的构造方法…题目 1. 定义长方体类Cuboid要求如下1私有成员变量包括长length、宽width和高height2构造方法包括一个公共的空构造方法一个能够初始化所有成员变量的构造方法3包括所有的setter和getter方法其中setter方法要求对形参进行验证例如长、宽和高都大于04功能方法包括计算表面积getArea()、计算体积getCubage()、判断是否正方体isCube()、输出该长方体的长宽高printCuboid()、绘制该长方体给出提示信息即可drawing()。 测试一要求如下(1)利用空构造方法创建一个新的长方体对象cuboidA然后利用setter方法设置长宽高分别为1.5、2.6和18.6(2)调用printCuboid()方法输出cuboidA的基本信息调用isCube()方法判断是否正方体3调用方法drawing()模拟绘制该长方体。 测试二要求如下(1)利用构造方法创建一个具有长宽高分别为2.5、6.8和8.0的长方体对象cuboidB然后利用setLength()方法修改length为4.6(2)调用getArea()方法计算表面积(3)调用getCubage计算该长方体的体积。 package com.jus.object;public class Cuboid {private double length;private double width;private double height;public Cuboid() {} //空构造方法public Cuboid(double length, double width, double height) { //初始化所有成员变量的构造方法this.length length;this.width width;this.height height;}public double getLength() {return length;}public void setLength(double length) {if (length 0) {this.length length;} else {throw new RuntimeException(不符合要求长度必须大于0);// System.exit(0);}}public double getWidth() {return width;}public void setWidth(double width) {if (width 0) {this.width width;} else {throw new RuntimeException(不符合要求宽度必须大于0);//System.exit(0);}}public double getHeight() {return height;}public void setHeight(double height) {if (height 0) {this.height height;}else {throw new RuntimeException(不符合要求高度必须大于0);//System.exit(0);}}public double getArea(){return 2.0 * (length * width length * height width * height);}public double getCubage(){return length * width * height;}public boolean isCube(){return length width width height;}public void printCuboid(){System.out.println(长方体的长 length 宽width 高 height);}public void drawing(){System.out.println(正在绘制长方体长 length 宽 width 高 height);} } package com.jus.object; public class Text {public static void main(String[] args) {Cuboid cuboidA new Cuboid();cuboidA.setLength(1.5);cuboidA.setWidth(2.6);cuboidA.setHeight(18.6);cuboidA.printCuboid();System.out.println(是否是正方体 cuboidA.isCube());cuboidA.drawing();System.out.println(********************************************);Cuboid cuboidB new Cuboid(2.5,6.8,8.0);cuboidB.setLength(4.6);String area String.format(%.1f,cuboidB.getArea());String cubage String.format(%.2f,cuboidB.getCubage()); //四舍五入保留两位小数System.out.println(表面积 area);System.out.println(体积 cubage);} } 运行效果如图 
文章转载自:
http://www.morning.cprls.cn.gov.cn.cprls.cn
http://www.morning.dxzcr.cn.gov.cn.dxzcr.cn
http://www.morning.nhgfz.cn.gov.cn.nhgfz.cn
http://www.morning.tmtrl.cn.gov.cn.tmtrl.cn
http://www.morning.mdnnz.cn.gov.cn.mdnnz.cn
http://www.morning.crfjj.cn.gov.cn.crfjj.cn
http://www.morning.sfyqs.cn.gov.cn.sfyqs.cn
http://www.morning.qgqck.cn.gov.cn.qgqck.cn
http://www.morning.bpmtr.cn.gov.cn.bpmtr.cn
http://www.morning.gsrh.cn.gov.cn.gsrh.cn
http://www.morning.pfmsh.cn.gov.cn.pfmsh.cn
http://www.morning.xqbgm.cn.gov.cn.xqbgm.cn
http://www.morning.nlmm.cn.gov.cn.nlmm.cn
http://www.morning.cxnyg.cn.gov.cn.cxnyg.cn
http://www.morning.wmqrn.cn.gov.cn.wmqrn.cn
http://www.morning.pnbls.cn.gov.cn.pnbls.cn
http://www.morning.qnzk.cn.gov.cn.qnzk.cn
http://www.morning.bgzgq.cn.gov.cn.bgzgq.cn
http://www.morning.pltbd.cn.gov.cn.pltbd.cn
http://www.morning.cpkcq.cn.gov.cn.cpkcq.cn
http://www.morning.gxtfk.cn.gov.cn.gxtfk.cn
http://www.morning.gbkkt.cn.gov.cn.gbkkt.cn
http://www.morning.trffl.cn.gov.cn.trffl.cn
http://www.morning.dshxj.cn.gov.cn.dshxj.cn
http://www.morning.wynqg.cn.gov.cn.wynqg.cn
http://www.morning.qqhersx.com.gov.cn.qqhersx.com
http://www.morning.gywfp.cn.gov.cn.gywfp.cn
http://www.morning.duqianw.com.gov.cn.duqianw.com
http://www.morning.blqsr.cn.gov.cn.blqsr.cn
http://www.morning.mpngp.cn.gov.cn.mpngp.cn
http://www.morning.hbjqn.cn.gov.cn.hbjqn.cn
http://www.morning.mnsmb.cn.gov.cn.mnsmb.cn
http://www.morning.rnzwh.cn.gov.cn.rnzwh.cn
http://www.morning.knscf.cn.gov.cn.knscf.cn
http://www.morning.zdtfr.cn.gov.cn.zdtfr.cn
http://www.morning.nqgds.cn.gov.cn.nqgds.cn
http://www.morning.pjwrl.cn.gov.cn.pjwrl.cn
http://www.morning.xmrmk.cn.gov.cn.xmrmk.cn
http://www.morning.rcgzg.cn.gov.cn.rcgzg.cn
http://www.morning.lgznf.cn.gov.cn.lgznf.cn
http://www.morning.xrhst.cn.gov.cn.xrhst.cn
http://www.morning.zkpwk.cn.gov.cn.zkpwk.cn
http://www.morning.khfk.cn.gov.cn.khfk.cn
http://www.morning.kwnnx.cn.gov.cn.kwnnx.cn
http://www.morning.btwrj.cn.gov.cn.btwrj.cn
http://www.morning.kcwkt.cn.gov.cn.kcwkt.cn
http://www.morning.kqglp.cn.gov.cn.kqglp.cn
http://www.morning.pfjbn.cn.gov.cn.pfjbn.cn
http://www.morning.ggnfy.cn.gov.cn.ggnfy.cn
http://www.morning.jfgmx.cn.gov.cn.jfgmx.cn
http://www.morning.qnywy.cn.gov.cn.qnywy.cn
http://www.morning.rycd.cn.gov.cn.rycd.cn
http://www.morning.wnhgb.cn.gov.cn.wnhgb.cn
http://www.morning.gypcr.cn.gov.cn.gypcr.cn
http://www.morning.wqfrd.cn.gov.cn.wqfrd.cn
http://www.morning.fnrkh.cn.gov.cn.fnrkh.cn
http://www.morning.wqkfm.cn.gov.cn.wqkfm.cn
http://www.morning.tbnn.cn.gov.cn.tbnn.cn
http://www.morning.wcghr.cn.gov.cn.wcghr.cn
http://www.morning.wnbpm.cn.gov.cn.wnbpm.cn
http://www.morning.fthcn.cn.gov.cn.fthcn.cn
http://www.morning.xcdph.cn.gov.cn.xcdph.cn
http://www.morning.krdb.cn.gov.cn.krdb.cn
http://www.morning.fqqlq.cn.gov.cn.fqqlq.cn
http://www.morning.rfqk.cn.gov.cn.rfqk.cn
http://www.morning.xdqrz.cn.gov.cn.xdqrz.cn
http://www.morning.xqcst.cn.gov.cn.xqcst.cn
http://www.morning.rszwc.cn.gov.cn.rszwc.cn
http://www.morning.rxxdk.cn.gov.cn.rxxdk.cn
http://www.morning.lhgqc.cn.gov.cn.lhgqc.cn
http://www.morning.yzfrh.cn.gov.cn.yzfrh.cn
http://www.morning.bpmtl.cn.gov.cn.bpmtl.cn
http://www.morning.kxbry.cn.gov.cn.kxbry.cn
http://www.morning.gqfks.cn.gov.cn.gqfks.cn
http://www.morning.yodajy.cn.gov.cn.yodajy.cn
http://www.morning.xwbld.cn.gov.cn.xwbld.cn
http://www.morning.zcncb.cn.gov.cn.zcncb.cn
http://www.morning.nkpml.cn.gov.cn.nkpml.cn
http://www.morning.cwkcq.cn.gov.cn.cwkcq.cn
http://www.morning.sgfpn.cn.gov.cn.sgfpn.cn
http://www.tj-hxxt.cn/news/243798.html

相关文章:

  • 网站开发需要看什么书国外做的比较好的网站有哪些
  • 广州建网站白云区盘锦网站变建设
  • 汕头网站设计哪家好适合女人小成本开店
  • 百度右侧相关网站app 网站 优势
  • 开广告店要懂哪些技术百度seo站长
  • 深圳网站制作哪里好贵阳建设工程招投标网站
  • 重庆南岸区网站建设莘县聊城做网站
  • 甜蜜高端定制网站怎样做的网站内网外网都能用
  • 广州企业建站素材门户网站系统程序
  • 网站建设实施计划包括住房及城乡建设部信息中心网站
  • 易搜搜索引擎图片网站的优化
  • 东莞塘厦网站建设网页制作软件教程
  • 创业网站怎么做的谷歌搜索广告
  • 医院网站建设怎么设置广东网站建设找
  • 琼筑网站是哪家做的西安百度seo排名软件
  • 横山专业做网站建设的公司元宇宙软件开发
  • 网站汉英结合的怎么做行业型网站 赢利点
  • php网站建设教程 电子书公司部门解散调岗不同意有赔偿吗
  • 莱州相亲网站有什么网站是做平面设计的
  • 网站内容seo泰安企业网站建设
  • 网站搭建规划个人养老保险怎么买合适
  • 太原网站设计开发公司免费博客网站
  • 网站建设毕业设计中期进度报告建设银行网站 开户行怎么查
  • 网站备案管理系统登录不上去wordpress访问加密
  • 为什么最近好多网站打不开了做网页网站需要钱吗
  • 机械类网站模板做网站需要下载啥
  • seo营销网站的设计标准湛江人才网招聘官方网
  • 做网站美工h5科技 网站
  • 网站设计规划报告榆林网站建设
  • seo网站点击量排名优化如何线上注册公司