Skip to content

Commit

Permalink
Operators in Java
Browse files Browse the repository at this point in the history
  • Loading branch information
eazybytes committed May 29, 2024
1 parent dba82a5 commit fe70d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions section7/src/ArithmeticOperatorsDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public static void main(String[] args) {
byte num11 = -(-9);

int num12 = 42;
num12 += 3.3; // num12 = (int) num12 + 3.3;
num12 += 3.3; // num12 = (int) (num12 + 3.3);

int num13 = 42;
num13 -= 3.3; // num13 = (int) num13 - 3.3;
num13 -= 3.3; // num13 = (int) (num13 - 3.3);

String str = "Hello";
str += 9;
Expand Down

0 comments on commit fe70d48

Please sign in to comment.