Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Dec 19, 2024
1 parent e9caebe commit 3d6883e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/examples/other/MixedAdd.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ public static void main(String[] args) {
String a = "19";
String b = "23";
int c = 23;
double d = 2.3;
float f = 2.3f;
System.out.println("The sum: " + (a+b));
System.out.println("The sum: " + (a+c));
System.out.println("The sum: " + (a+d));
System.out.println("The sum: " + (a+f));
}
}

0 comments on commit 3d6883e

Please sign in to comment.