From c08b2a880fe5dd4acbc69351d311b38bece339c3 Mon Sep 17 00:00:00 2001 From: LingCoder <34231795+LingCoder@users.noreply.github.com> Date: Tue, 26 Mar 2019 09:30:36 +0800 Subject: [PATCH] Update 04-Operators.md --- book/04-Operators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/04-Operators.md b/book/04-Operators.md index 598f400..af50929 100644 --- a/book/04-Operators.md +++ b/book/04-Operators.md @@ -49,7 +49,7 @@ public class Precedence { 这些语句看起来大致相同,但从输出中我们可以看出它们具有非常不同的含义,具体取决于括号的使用。 -我们注意到,在 `System.out.println() ` 语句中使用了`+`运算符。 但是在这里 `+`代表的意思是字符串连接符。当编译器看到字符串的后面连着一个非`+`连接的非字符串,那么其将会试图去转换这个非字符串成为字符串。上例中的输出结果说明了 a 和 b 都已经被转化成了字符串。 +我们注意到,在 `System.out.println()` 语句中使用了`+`运算符。 但是在这里 `+`代表的意思是字符串连接符。编译器会将`+`连接的非字符串尝试转换为字符串。上例中的输出结果说明了 a 和 b 都已经被转化成了字符串。 @@ -113,4 +113,4 @@ public class Precedence { -
\ No newline at end of file +