String字符串中"+Xxx+"的使用 int num = 3; String location = "食堂"; System.out.println("我今天在 "+location+" 吃了 "+num+"顿饭 "); 我今天在 食堂 吃了 三 顿饭