Question: Name: 67 Your Answer: public static void main(String args) { int[] A = {10,15,24,9,45,67,89); Pl) You are given an array of integers: 89 1 3

Name: 67 Your Answer: public static void main(String args) { int[] A = {10,15,24,9,45,67,89); Pl) You are given an array of integers: 89 1 3 5 Write a Java code to print all elements in A reverse order For example, your answer for the given array A should print in order of 89, 67,45,9,24,15 and 10. P2) Write a Java code to create an array of integers A which contains all integers from 0 to 1000 Your Answer: public static void main(Stringl] args) { Your Answer: public static void main(String[] args) { P3) Write a Java code to create an array of integers A which contains all even integers from 0 to 1000. In other words, your array A should contain 0,2,4,6..... 1000 | P4) Suppose you are given an array A Your Answer: of integer numbers. Write a Java code which prints out the sum of all numbers public static void main(String[] args) { in A int DIA - $4,6,2,1,10): For example, if A = {4,6,2,1,10), you need to print 23 because the sum will be 4 +6+2+1+10 23
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
