Question: ******JAVA****** I am just wondering why my code does not work .... Write three statements to print the first three elements of array runTimes. Follow
See "How to Use zyBooks Also note: If the submitted code tries to access an invalid arr generate strange results. Or the test may crash and report "P test case that caused the reported message. 1 import java.util.Scanner; 2 3 public class PrintRunTimes { 4 public static void main (String [] args) { 5 Scanner scnr = new Scanner(System.in); final int NUM ELEMENTS 5; int [] runTimes new int [NUM_ELEMENTS]; 8 int i; 9 10 for (i - 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
