算法 algorithm --主数据类型 primitive data type-- 基本类型 fundamental type
加号有两种意义:一,加法,
二,另一种用途做字符串的连接。
注意:如果2个操作数都是字符串,字符串连接符就把两个字符串连接起来,
如果其中一个操作数非字符串,这个非字符串就会先被转为一个字符串,然后再与另一个字符串相连。
在源代码中,字符串常量不能跨行。
System.out.println("Introduction to java Programint,
by Y,Daniel Liang");
为了改正错误,将该字符串分成几个单独的字串,然后连接符+将他们组合起来:
System.out.println("Introduction to java programing,"+