Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a print 1 0 method that prints out the first 1 0 words of the dictionary array. Do not print out the whole array
Write a print method that prints out the first words of the dictionary array. Do not print out the whole array of words!
Write a spellcheck method that takes a word as a parameter and returns true if it is in the dictionary array. It should return false if it is not found When can you tell that you have not found a word in the dictionary? Test your code below by changing the word sent to the spellcheck method in main. This algorithm is called a linear search where we step through the array one element at a time here the dictionary one word at a time looking for a certain element.
Optional Challenge: Write a method printStartsWithString that prints out the words that start with a String of letters in the dictionary array. Your method should take a parameter for the firstLetters as a String. You could use the Java String startsWith method here if youd like to or use indexOf to see if the firstLetters is at index of the string. This is not autograded.
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