《core Java for the impatient》阅读笔记(1) 基本编程结构

第一章 基本的编程结构

  • System类中声明了一个常量 public static final PrintStream out
    可以在任何地方使用System.out 这是少有的几个常量没有大写的情况
  • 字符串拆开,substring方法/split;联结 join/StringBuilder
  • 比较两个字符串是否内容相等:equals √;== ×; null!=""

猜你喜欢

转载自blog.csdn.net/m0_37753327/article/details/82918679