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!

Need help writing programs for #3 and #4 in java! 3. Implement

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!