Day 19 -What I Learned In a Day(JAVA) Today I practiced Type Casting and Dynamic Input (User Input) in Java Type Casting: I solved problems based on: ✔ Widening Casting (automatic conversion) ✔ Narrowing Casting (manual conversion) ✔ Handling data loss ✔ Applying casting in expressions Practicing problems helped me understand the concept clearly. Dynamic Read (User Input in Java): I learned the 3 important steps to use dynamic input: 1️⃣ Import Scanner class 2️⃣ Create Scanner object 3️⃣ Use input methods Input Methods I Practiced: ✔ nextInt() → for integer ✔ nextDouble() → for decimal numbers ✔ next() → for single word ✔ nextLine() → for full sentence ✔ next().charAt(0) → for character input ✔ nextFloat() → for float values ✔ nextLong() → for long values Practiced 👇 #Java #CoreJava #TypeCasting #LearningJourney #Consistency 

To view or add a comment, sign in

Explore content categories