Question: ACTIVITY 5 . 4 . 2 : Iterating through arrays. 5 2 8 0 4 0 . 3 4 8 9 5 2 8 .
ACTIVITY
: Iterating through arrays.
Given the integer array yearlySalaries with the size of ARRLENGTH, write a for loop to output the integers in the second half of yearlySalaries. Separate the integers with an asterisk surrounded by spaces :
Ex: If the input is then the output is:
public static void mainString args
Scanner scnr new Scanner
System.in;
final int ARRLENGTH ;
int yearlySalaries new int ARRLENGTH;
int ;
for yearlySalaries.length;
yearlySalaries scnr nextInt ;
for your code goes here
I Your code goes here I
System.out.println;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
