摘要: 字符串比较 在java中“==”是用来比较地址值是否相同 如过想用字符串比较请用以下方法: eg: public class helloWord{ public static void main(String[] args) { String a="ABc"; String b=new String 阅读全文
posted @ 2022-05-19 14:17 欧阳锦涛 阅读(33) 评论(0) 推荐(0)
摘要: 简单使用(格式化输出) public class helloWord{ public static void main(String[] args) { System.out.printf("你好呀%s","taoge"+" "); //用作换行 System.out.println(); Syst 阅读全文
posted @ 2022-05-19 10:50 欧阳锦涛 阅读(334) 评论(0) 推荐(0)
摘要: java成员变量,局部变量区别 阅读全文
posted @ 2022-05-19 10:07 欧阳锦涛 阅读(30) 评论(0) 推荐(0)
TOP 底部