From 8ca948fbf59e8c64d196a8046f86d7a950589d1c Mon Sep 17 00:00:00 2001 From: Hamothy <58985301+sgoudham@users.noreply.github.com> Date: Thu, 8 Oct 2020 21:59:06 +0100 Subject: [PATCH] Delete typeConversion.java --- .../Type Conversion/src/typeConversion.java | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 Java Fundamentals/Type Conversion/src/typeConversion.java diff --git a/Java Fundamentals/Type Conversion/src/typeConversion.java b/Java Fundamentals/Type Conversion/src/typeConversion.java deleted file mode 100644 index 49a1cbe..0000000 --- a/Java Fundamentals/Type Conversion/src/typeConversion.java +++ /dev/null @@ -1,44 +0,0 @@ -public class typeConversion { - - public static void main(String[] args) { - float floatVal = 1.0f; - double doubleVal = 4.0d; - byte byteVal = 7; - short shortVal = 7; - long longVal = 5; - - // Possible - short result1 = byteVal; - - // Not possible - // short result2 = longVal; - - // Possible - short result2 = (short) longVal; - - // Not Possible - // short result3 = byteVal - longVal; - - // Possible - short result3 = (short) (byteVal - longVal); - - // Not Possible - // long result4 = longVal - floatVal; - - // Better to do this - Possible - float result4 = longVal - floatVal; - - // Possible - double result5 = doubleVal + shortVal; - - - System.out.println("Success"); - System.out.println(result1); - System.out.println(result2); - System.out.println(result3); - System.out.println(result4); - System.out.println(result5); - } -} - -