JAVA Arrays

Write a code fragment that initializes an int[] containing the first 7 prime numbers then prints its contents using the enhanced for loop.

Write a method that takes a double[] as input and returns the average of the numbers it contains.

Write a method called noVowels that takes a String as input and returns true if it doesn't contain any vowels (a, e, i, o, u).

Write a method called isPalindrome that takes a String as input and returns true if the String is a palindrome.

Give an example where == and .equals return different results. Explain your answer.

What is the output of this fragment? Explain.

char c = 'A';

System.out.println(c + 10);

Write a method called isSorted that takes an int[] as input and returns true if the array's elements are in increasing order.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now