Question: Fork this project. If you don't fork this project you will get a 0 for the assignment. Edit the LongestPalindrome function in the Main.java file
Fork this project. If you don't fork this project you will get a for the assignment.
Edit the LongestPalindrome function in the Main.java file and ensure that your function tests pass.
The LongestPalindrome function takes in a Scanner object that already references the file words.txt This function should return the longest word that is a palindrome.
Submit your project when tests are satisfied. This means you will share this and submit the link on Canvas.
If necessary you can resubmit your project.
Hint: To get started, the Scanner object has a "hasNext method you can use when iterating through a file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
