Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started