Java 012 Scanner類、String類

知識點梳理 心得體會 小知識點 1.字符串字面值也可看做字符串對象,可以調方法 2. equals與= =的區別 class Demo { public static void main(String[] args) { String s1 = new String("hello"); String s2 = "hello"; System.out.println( s1 == s
相關文章
相關標籤/搜索