Question: 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
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
