Question #216733

12. Show the Java code to declare and allocate an array with 497 elements of type double.





13. Print i as long as i is less than 6.



Expert's answer

Question 12

double [] arr = new double[497];

Question 13.

  for(int i=0; i<6; i++){
	        System.out.println(i);
	    }
LATEST TUTORIALS
APPROVED BY CLIENTS