📜  加号在 Java 代码示例中如何工作

📅  最后修改于: 2022-03-11 14:52:20.065000             🧑  作者: Mango

代码示例1
In Java, you can do two different things with a plus sign: 
You can add numbers with a plus sign. 
numberOfSheep = 2 + 5; 
You can concatenate strings with a plus sign.