Question: Given the declaration int [ ] nums = {8, 12, 23, 4, 15}, what expression will display the second element in the array (ie the
Given the declaration int [ ] nums = {8, 12, 23, 4, 15}, what expression will display the second element in the array (ie the number 12)
| System.out.print("The number is : " + nums[0]); | ||
| System.out.print("The number is : " + nums[1]); | ||
| System.out.print("The number is : " + nums[8]); | ||
| System.out.print("The number is : " + nums); |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
