Question: Write the code to declare an array named prices that is a double data type and will store the values of 1.99,2.56,9.99,6.5, and 10.95 in

Write the code to declare an array named prices that is a double data type and will store the values of 1.99,2.56,9.99,6.5, and 10.95 in its elements. Also, write the code for a for loop to dislay the value of each element on the console. in java language

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!