1. Java语言的简单认识 (1) Java有三个版本: a.JAVA SE
(以前称J2SE):Standard Environment 标准版本; b.JAVA EE (以前称J2EE):Enterprise Environment
企业版; c.JAVA ME (以前称J2ME)...
分类:
编程语言 时间:
2014-05-12 15:57:22
阅读次数:
335
前面已经说过选择结构了其实他和for相差不是太大,现在就来说说循环结构。循环结构有三种形式!1
for 2.while 3.do while 这三种都可以循环,不过他们之间还是有区别的,for和while是要先验证条件,如果条件满足才执行循环体,而后者do
while是不管条件是否满足都要执...
分类:
其他好文 时间:
2014-05-10 20:03:50
阅读次数:
326
您正试图在64位版本的窗口中运行32位安装程序、系统有32位操作系统和64位操作系统的分别,相同的软件的安装也需要区分操作操作系统的位数。解决办法:查看自己系统类型,根据类型下载安装相应位数的软件。
1)循环语句while,do/while,for
格式:while(布尔表达式){循环体语句}//先验循环,可执行0次或n次,若布尔表达式第一次为false,永不执行循环体语句
do{循环体语句}while(布尔表达式);//后验循环,可执行一次或n次,且至少执行一次 for(初始化;布尔表达式;变...
分类:
其他好文 时间:
2014-05-06 09:15:17
阅读次数:
254
Problem DescriptionGiven n integers.You have two
operations:U A B: replace the Ath number by B. (index counting from 0)Q A B:
output the length of the...
分类:
其他好文 时间:
2014-05-06 01:20:33
阅读次数:
332
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-06 00:51:29
阅读次数:
353
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407
http://blog.sina.com.cn/s/blog_7a4cdec80100wkyh.html
分类:
其他好文 时间:
2014-05-05 23:53:37
阅读次数:
314
The general mechanism for executing tasks is
the executor service. If you think in terms of tasks and let an executor service
execute them for you, yo...
分类:
编程语言 时间:
2014-05-05 23:32:44
阅读次数:
389
“参考Lua游戏开发实践指南”
Lua提供两种控制结构(数字型和通用型)--Lua中的for语句的索引是从1开始的 数字型: 一个简单的示例如下1 for indx = 1, 10 do2
print(indx)3 end do关键字标记程序块的开始,end标记程序块的结束。 ...
分类:
其他好文 时间:
2014-05-02 17:26:51
阅读次数:
702