摘要:
文章搬运,原文链接 一个 if 语句包含一个布尔表达式和一条或多条语句。 语法 if 语句的语法如下: public class Test { public static void main(String args[]){ int x = 10; if( x < 20 ){ System.out.p 阅读全文
posted @ 2021-02-06 21:40
chaostudy
阅读(48)
评论(0)
推荐(0)
摘要:
文章搬运,原文链接 Java 循环结构 - for, while 及 do...while 顺序结构的程序语句只能被执行一次。如果您想要同样的操作执行多次,,就需要使用循环结构。 Java中有三种主要的循环结构: while 循环 do…while 循环 for 循环 在Java5中引入了一种主要用 阅读全文
posted @ 2021-02-06 21:30
chaostudy
阅读(46)
评论(0)
推荐(0)

浙公网安备 33010602011771号