Question: Need help writing programs for #3 and #4 in java! 3. Implement a method to create an integer array and return this array from the
Need help writing programs for #3 and #4 in java!

3. Implement a method to create an integer array and return this array from the method: int [] generateArray(int sizeOfArray) The array will be randomly initialized with number from 1 through sizeOfArray. And each number can only appear once. (Clue: initialize the array with value from 1 to sizeOfArray, then shuffle this array) Test: call the method from main() and display this array, each line can only display 10 elements 4. Write a method to test if a string is a palindrome: boolean isPalindromeString (String str) Test: generate some string objects, pass the string objects to the method and display result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
