Created
December 19, 2023 17:24
-
-
Save mounicasrinivas/f8e6b0a4c7f0d8e521ce8eaea8ca4772 to your computer and use it in GitHub Desktop.
Determining Array Length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int[] myArray = {10, 20, 30, 40, 50}; | |
int arrayLength = myArray.length; | |
System.out.println("The length of the array is: " + arrayLength); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment