Question: To declare an array or integers 2 points that has 5 elements use: * O A. int[] n = new int[5]; B. int n[] =

To declare an array or integers 2 points that has 5 elements use: * O A. int[] n = new int[5]; B. int n[] = new int[5]; C. int[5] n = new int[]; both a and b both b and c 2 points If you wanted to find out where the position of the letter v i.e. return 2) in the String s containing the word "Java", which of the following could you use? * mid(2,s); s.charAt(2); s.indexOf('v'); indexOf(s/V')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
