登录
首页 » Java » 循环

循环

于 2019-10-12 发布
0 400
下载积分: 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 个回复

  • itext
    itext2.07 转PDF、itext API 、java+用iText生成Word文件、中文帮助文档( itext2.07 turn PDF, itext API, java+ generated Word file using iText, Chinese help documentation)
    2020-11-14 12:09:43下载
    积分:1
  • RMIProject
    用java RMI编写的一个远程计算平台,用户可以向远程计算机提交计算任务(可以自己编程定义复杂的计算任务),在远程计算机运行后返回计算结果(Java RMI prepared with a remote computing platform, users can submit to the remote computer computing tasks (which may own the definition of the complexity of programming the calculation of mission), the remote computer is running after the return of calculation results)
    2007-07-20 18:41:29下载
    积分:1
  • Effective Java-Joshua Bloch 3rd Edition 2018
    java进阶书籍,非常好的英文资料,希望大家共同学习进步(Advanced Java books, very good English materials, I hope you can learn and progress together.)
    2020-06-22 04:20:02下载
    积分:1
  • Exe4_3
    3.已知车辆(Vehicle)包括机动车(MotoVehicle)和非机动车(NonMotorVehicle)2种。小汽车(Car)、公交车(Bus)等属于机动车,自行车(Bicycle)等属于非机动车。随着能源技术的发展,出现了电动自行车(ElectricBicycle)、电动小汽车(ElectricCar)、天然气公交车(NaturalGasBus)等新型车辆。车辆的共同特征是都能够运行(run),并且有唯一的5位车牌号(LicenseNumber)。机动车的共同特征是采用燃油发动机(FuelEngine),且能够驾驶(drive)。自行车的共同特征是能够骑行(ride)。电动车辆的共同特征是由电池(Battery)驱动。天然气车辆的共同特征是采用天然气(NaturalGas)作为动力。 要求: (1)设计一个类体系描述上述车辆,写出它们的属性和方法。 (2)一家公司(Company)拥有10辆普通小汽车、5辆公交车、2辆电动小汽车和1辆天然气公交车,要求写一个方法listVehicles()显示所有车辆的信息(车牌号以及采用的动力)。 程序文件命名为Exe4_3.java。(3. Known vehicle (Vehicle) including motor vehicle (MotoVehicle) and non-motorized (NonMotorVehicle) 2 species. Cars (Car), bus (Bus), etc. to motor vehicles, bicycles (Bicycle), etc. are non-motor vehicles. With the development of energy technologies, the emergence of electric bicycles (ElectricBicycle), electric cars (ElectricCar), natural gas buses (NaturalGasBus) and other new vehicles. A common feature of the vehicle is able to run (run), and there are only five license plate number (LicenseNumber). Common feature is the use of a motor vehicle fuel engine (FuelEngine), and is capable of driving (drive). Common feature is the ability to ride a bike (ride). Common characteristics of the electric vehicle is driven by a battery (Battery). A common feature is the use of natural gas vehicles (NaturalGas) as the driving force. Claim: (1) describe the design of a class system of the vehicle, write their properties and methods. (2) a company (Company) owns 10 ordinary cars, five buses, )
    2015-06-14 18:22:51下载
    积分:1
  • packing
    说明:  用EvoHyp实现一维装箱问题的选择构造超启发式算法。(Implementation of a Selection Constructive Hyper- Heuristic using EvoHyp to solve the One-Dimensional Bin- Packing Problem)
    2020-11-12 17:45:49下载
    积分:1
  • Tank2.9
    一个基于JAVA的小游戏,大家可以看下,希望对大家有帮助。。。(JAVA-based mini-games, everyone can facie, in the hope that everyone has to help. . .)
    2009-02-18 18:00:35下载
    积分:1
  • java
    一些java高级源代码,挺实用的,对初学者应该有帮助(High number of java source code, very useful, there should be help for beginners)
    2009-04-21 13:06:43下载
    积分:1
  • src
    GPS on Mobile with Java
    2009-06-01 03:11:20下载
    积分:1
  • JAVA_5
    VE 可视化工具,适用于JAVA编程的,是目前流行的JAVA编程开发工具VE-Update-1.4.08版本。(VE visualization tools for JAVA programming is currently popular Java programming development tools VE-Update-1.4.08 version.)
    2012-07-17 17:11:58下载
    积分:1
  • javagetMAC
    说明:  java简单的获取windows系统网卡mac地址(simple access to the Windows system card mac address)
    2006-04-25 11:24:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载