Simple Array in java
- by user1311590
I need to create the following in my main method. Create an array of size 100 doubles. write a loop to sotr the number 150.0 - 249.0 in the 100 location.
public class Lab6_2 {
public static void main(String[] args)
{ double[] values;
values = new double [100];
double i = 0;
for(double i = 150.0; i<249.0;i++){
System.out.println(values[99]);
} } }