Commit c4adfc6
committed
feat: Demonstrate array length property and default toString output of arrays
🧠 Logic:
- Declares and initializes integer array `B` and float array `C`.
- Prints `B.length` to show how to retrieve array size.
- Prints `B` and `C` directly, which outputs their reference info (not contents) due to default toString().
- Highlights the difference between printing array contents vs. reference in Java.
Signed-off-by: Somesh diwan <[email protected]>1 parent 575349c commit c4adfc6
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
0 commit comments