Page 1 of 1

using java Write a main() method for this problem; you don't need to code any additional methods. Declare and populate

Posted: Tue Jul 12, 2022 8:10 am
by answerhappygod
using java
Write a main() method for this problem; you don't need to codeany additional methods. Declare and populate an array with 15 string values. Make eachvalue one English word (or a word from a language of your choice).How you populate the array is up to you: an input file, shortcutassignment, individual assignment statements, etc. Up toyou. Then, add code to ask the user for a word. Then, take the word theuser provides and search to determine whether or not the wordexists in the array. Code your solution in such a way that thecomparison is case-insensitive and display the results like theexamples shown. Sample input/output dialog:
Enter a word: testThe word 'test' was not found
Enter a word: princessThe word 'princess' was foundEnter a word: HELPThe word 'help' was found