Presentation is loading. Please wait.

Presentation is loading. Please wait.

String Concatenation (operator overloading) 3.0.

Similar presentations


Presentation on theme: "String Concatenation (operator overloading) 3.0."— Presentation transcript:

1 String Concatenation (operator overloading) 3.0

2

3 Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling String concatenation 4 + 5 ═ 9 "wind" + "ow" ═ "window" "Result: " + 6 ═ "Result: 6" "# " + price + " cents" ═ "# 500 cents" overloading

4 Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling Quiz System.out.println(5 + 6 + "hello"); System.out.println("hello" + 5 + 6); 11hello hello56


Download ppt "String Concatenation (operator overloading) 3.0."

Similar presentations


Ads by Google