Question: Please solve it for Java code: 4-) Prepare a String Array and call it strNameSurname. Initiate the strNameSurname array with the letters of your name
Please solve it for Java code: 4-) Prepare a String Array and call it strNameSurname. Initiate the strNameSurname array with the letters of your name and surname. (For example {"y", "a", "v", "u", "z", "s", "e", "l", "i", "m", "h", "i", "n", "d", "i", "s", "t", "a", "n"} ) Use Arrays.toString to show the strNameSurname content in the console output 5-)Copy the strNameSurname array to a new array and call it strNameSurnameNew. The strNameSurnameNew should have seven more items than the strNameSurname array. Append each digit of your student number to the strNameSurnameNew array. Use Arrays.toString to show strNameSurnameNew content in the console output 6-)Use the following array int [] numValues = { -1, 2, 0, 8, 7, 6, 9 }; Write a while loop to find the max of numValues. Use an integer largest variable to check the item of the array. 7-) Ask the user to input a number between 0 and 10. Use do while validation to ensure the input value is between 0 and 10. Use printf function to print the input value. System.out.printf("Entered value is:"+ "%,2d%n" , intInput);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
