Question: in java Screen Shot 2021-02-04 at 8.59.36 PM Search = Homework: Array Basics Let's get some practice with basic array usage. Below, you have two
Screen Shot 2021-02-04 at 8.59.36 PM Search = Homework: Array Basics Let's get some practice with basic array usage. Below, you have two tasks. First, declare an array of ints named numbers and initialize it to contain the values 0, 8, 9, 4, and 5, in that order. Second, given an existing array of doubles named values, print its first value and also change its third value to 1.25. 99 A You have until 11:59PM Central Time on 2021-02-07 to complete this problem. WORKING PREVIOUS EL 1 int [values - {0,8,9,4,5); 2 double values new double [4]; 3 System.out.println(values[0]); 4 values [2] = 1.25; System.out.println(values[2]); 2009 Question.java:1: error: variable values is already defined in method arrayBasics() int () values = {0,8,9,4,5); Question.java:2: error: variable values is already defined in method arrayBasics() double [] values = new double [4]: C. Question.java:7: error: cannot find symbol A 21/00 symbol: variable numbers Location: class Question 3 errors le 11:51 AM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
