From 3d6883e7294b5c3c0d16f32e6922da1a25f1df29 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Thu, 19 Dec 2024 08:25:39 +0200 Subject: [PATCH] add --- java/examples/other/MixedAdd.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/examples/other/MixedAdd.java b/java/examples/other/MixedAdd.java index 73bb923e..e9c6b6d5 100644 --- a/java/examples/other/MixedAdd.java +++ b/java/examples/other/MixedAdd.java @@ -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)); } }