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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply