登录
首页 » Java » 循环

循环

于 2019-10-12 发布
0 310
下载积分: 1 下载次数: 0

代码说明:

说明:  控制条件语句的变量,在for循环结束后,就不可以被访问了,而while循环还可以访问,如果你继续想使用该变量,则可以使用while循环,否则推荐使用for循环,原因是for循环结束,该变量就从内存中消失,能够提高内存的使用效率。(The variable that controls the conditional statement is not accessible after the for loop has finished, and the while loop is accessible if you continue to use the variable, you can use the while loop. Otherwise, it is recommended to use the for loop, because the variable disappears from memory after the for loop, which can improve memory efficiency.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Homework08
    利用前面提到的SupplyDepot、Transport和CapableOfBeingRefefuelled类/接口,为Air-plane增加一个main()方法,然后为supplyDepot等增加必要的字段、参数和代码,以便CapableOfBeingRefefuelled能够告诉service()方法需要加多少油。同时要确保Depot中的油应相应地减少,而实现CapableOfBeingRefefuelledi的类对象应相应地增加。(Using the upplyDepot, Transport and ApableOfBeingRefefuelled classes/interfaces mentioned above, add a main () method to Air-plane, and then add the necessary fields, parameters and codes to supplyDepot, so that CapableOfBeingRefefuelled can tell service () how much fuel the method needs. At the same time, we should ensure that the oil in Depot should be reduced accordingly, and the class objects that implement Capable OfBeingRefefuelledi should be increased accordingly.)
    2020-12-07 21:59:21下载
    积分:1
  • guess
    随机产生数据,输入大小值,大了或小了都有显示。还可以继续玩,如果猜对的话,也可以退出 (Randomly generated data, the value of the input size, big or small are displayed. Can continue to play, if you guess right, you can exit)
    2011-10-14 21:09:57下载
    积分:1
  • java
    设计一个成绩录入程序,通过键盘录入examId(考号,要求全部是数字符号)、name(姓名,要求全部是字母符号)和score(成绩,要求介于0~800)。当输入数据的类型、输入数据的范围出现错误时,使用Java语言定义的异常类和自定义异常类进行处理。(Entry procedures for the design of a performance by keyboard entry examId (candidate number, the number of requests are all symbols), name (name, requirement for a letter symbols) and score (results, request the range of 0 ~ 800). When the type of input data, the scope of input data errors, use the Java language as defined custom exception classes and exception classes for processing.)
    2009-06-08 23:25:21下载
    积分:1
  • linux_pda_design
    基于嵌入式Linux的智能手机省电设计。一篇不错的文章。(Embedded Linux based smartphone energy saving design. A good article.)
    2007-04-04 11:22:52下载
    积分:1
  • TIJ-2nd-edition-code
    java编程思想源代码,本书17章,java经典图书(thinking java programming source code, the book chapter 17, java classic books)
    2006-11-17 15:11:28下载
    积分:1
  • DTMDefaultBaseIterators
    This class implements the traversers for DTMDefaultBase.
    2014-02-27 15:34:38下载
    积分:1
  • 【牛客资料库】2018校招12家企业笔试真题汇总
    说明:  2018年的12家大厂java面试真题收藏,内容十分经典!(Java interview questions of 12 large factories)
    2020-03-08 19:23:27下载
    积分:1
  • 阿里巴巴Java开发手册.pdf
    java编程规范,是学习java编程的好资料(Java programming specification)
    2018-04-12 18:37:15下载
    积分:1
  • NamespaceMappings
    This member is continually incremented when new prefixes need to be generated Source Code for Andriod.
    2013-12-16 11:34:16下载
    积分:1
  • ch02
    java程序设计教程第二章例题,关于输入输出的相关代码(java programming tutorial Chapter II examples, the relevant code on the input and output)
    2010-12-19 22:32:08下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载