上一页 1 ··· 3 4 5 6 7
摘要: 1、If语句 If语句主要用于分支结构,表示判断的意思,主要分为3种表现方式 1:if语法 If一般用于单个判断,表示如果的意思;条件成立则会执行相应的代码。 语法: If(表达式){ //代码块,当表达式为true时,才会执行这里的代码 } 2:if else If-else结构一般用于二选一的情 阅读全文
posted @ 2021-11-14 18:24 这题我不会 阅读(491) 评论(0) 推荐(0)
摘要: package aa; public class helloworld { public static void main(String[] args) { System.out.println("HelloWorld!"); } //输出helloworld } 用的软件是Eclipse,publ 阅读全文
posted @ 2021-11-14 18:13 这题我不会 阅读(135) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7