Java试题_渠道分析和总结.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基础题 “|SKY|MOBI”.split(“|”).length 的结果是() A 2 B 3 C 9 D 10 如下代码 int i =1,j =10; do { int i =1,j =10; do { if(i++ --j) { continue; } } while (i 5); System.out.println(i = +i+ and j = +j); 输出结果是什么? i = 6 and j = 5 i = 5 and j = 5 i = 5 and j = 6 i = 6 and j = 6 答案:C 简答题 public static void drawCircle(int x, int y, int r){MapString,Boolean map = new HashMapString,Boolean(); int x1,x2,y1,y2;int i,j;String index = ;//X轴方向遍历for(i=0; i=r; i++){//返回一个四舍五入的整数值j = (int) Math.round(Math.sqrt(r*r - i*i)); x1 = i+x;x2 = -i+x; y1 = j+y;y2 = -j+y;已知静态方法ScrnUtils.drawPos(int public static void drawCircle(int x, int y, int r){ MapString,Boolean map = new HashMapString,Boolean(); int x1,x2,y1,y2; int i,j; String index = ; //X轴方向遍历for(i=0; i=r; i++){ //返回一个四舍五入的整数值 j = (int) Math.round(Math.sqrt(r*r - i*i)); x1 = i+x; x2 = -i+x; y1 = j+y; y2 = -j+y; ScrnUtils.drawPos(x1, y1); ScrnUtils.drawPos(x1, y2); ScrnUtils.drawPos(x2, ScrnUtils.drawPos(x1, y1); ScrnUtils.drawPos(x1, y2); ScrnUtils.drawPos(x2, y1); ScrnUtils.drawPos(x2, y2); index = x1+_+y1; map.put(index, true); } //Y轴方向遍历for(i=0; i=r; i++){ //返回一个四舍五入的整数值 j = (int) Math.round(Math.sqrt(r*r - i*i)); x1 = j+x; x2 = -j+x; y1 = i+y; y2 = -i+y; //避免两次画同一个点index = x1+_+y1; if(map.get(index)==null || !map.get(index)){ ScrnUtils.drawPos(x1, y1); ScrnUtils.drawPos(x1, y2); ScrnUtils.drawPos(x2, y1); ScrnUtils.drawPos(x2, y2); } } }

文档评论(0)

mph + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体上海谭台科技有限公司
IP属地湖北
统一社会信用代码/组织机构代码
91310115MA7CY11Y3K

1亿VIP精品文档

相关文档