![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
CODE~沐鱼
这个作者很懒,什么都没留下…
展开
-
java中IF语句
java 中的IF语句 单支IF 语句 public class IFDEME{ public static void main(String[] args){ int a = 10; int b = 20; // 判断a与b 是否相等;若相等则输出a等于b if(a == b){//false 则不输出 System.out.println("相等"); } //判断a和c原创 2021-03-30 19:04:53 · 168 阅读 · 0 评论 -
java运算符
字符串的加法"+“字符的加法”+" package dujian; public class One{ public static void main(String[] args){ // 字符串的加法 String str1 = "Hello"; String str2 = "World"; System.out.prinln(str1 +str2); String str3 = "年龄"; // int原创 2021-03-25 20:14:32 · 54 阅读 · 0 评论