Question: Q1. Arrays in Java a) Your coding style (10 points). b) Prepare a String Array and call it strNameSurname. Initiate the strNameSurname array with the
Q1. Arrays in Java a) Your coding style (10 points). b) Prepare a String Array and call it strNameSurname. Initiate the strNameSurname array with the letters of your name and surname. Use Arrays.tostring to show the strNameSurname content in the console output (10 points). c) Output all elements of the strNameSurname array with o [s separators between them. There should be no separator before the first or after the last item (10 points). Sample output -HA4.1.b.strNameSurnane:[y,a,v,u,z,s,e,1,i,m,h,i,n,d,i,s,t,a,n]h4,1,cmyavuzse11mhindistan (50 Points) The Fourth Assignment - Question 1 Q1. Arrays in Java d) Copy the strNameSurname array to a new array and call it strNameSurnameNew. The strNameSurnameNew should have seven more items than the strNameSurname array. Please show the length and current size of the strNameSurnameNew array. Use Arrays.toString to show strNameSurnameNew content in the console output (10 points). e) Please append each digit of your student number to the strNameSurnameNew array. Use Arrays.tostring to show strNameSurnameNew content in the console output (10 points). Sample output - aldes, 88=4 Ridied otudent nueber HMalas. 45
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
