Commit 5bd6b12
committed
feat: Add Primitives class to demonstrate Java primitive data types and type casting
Add a program that:
- Declares and initializes variables of various primitive types: int, char, float, double, long, boolean
- Demonstrates usage of post-increment on a float variable
- Includes a commented line showing how to perform explicit type casting
- Provides a basic overview of memory-efficient primitive type usage in Java.1 parent f05b5ec commit 5bd6b12
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
0 commit comments