Problem 3
What happens if the sequential search is applied to an element that occurs more than once in the array?
Problem 5
What is an ArrayIndexOutOfBounds Exception exception, and how does its use distinguish Java from other languages such as \(\mathrm{C}\) and C \(++?\)
Problem 6
What is the simplest way to print an array of objects?
Problem 9
Write and run a Java program that inputs three names and print them in their alphabetical order.
Problem 10
Write a Java program that will print the subscript of an array and the corresponding element of it.
Problem 19
A number is said to be palindrome if it is invariant under reversion; that is, the number is the same if its digits are reversed. For example, 3456543 is palindromic. Write a program that checks each of the first 10,000 prime numbers and prints those that are palindromic.
Problem 24
Write a class JPS 33 that represents a \(3 \times 3\) integer matrix. Include a constructor that creates the specified JPS33. Include a to String method that returns the three-line representation.
Problem 25
Write a method that takes a rectagular matrix and determines if it is square.