Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP IN JAVA PLEASE: This exercise uses the Java LinkedList class. Using the input file words_no_duplicates-edited.txt , input each string putting it into a different

HELP IN JAVA PLEASE:

This exercise uses the Java LinkedList class.

Using the input file words_no_duplicates-edited.txt , input each string putting it into a different LinkedList depending on the first character in the String. (Yes, you will need 26 linked lists).

Then prompt the user for a (lower case) character and display all the words beginning with that character. (If the user enters an invalid character, trap them in a loop until they give you a valid one).

Note: nothing is sorted. I do NOT want to see 26 if statements or 26 case Switch statements. Use your head and remember ASCII tables.

Allow the user to enter any alphabetic character (lower or upper case). You will then need to convert it to lower case.

words_no_duplicates-edited.txt:

noncollectable

reallocation

drenching

obnoxious

venality

dybbuk

shotgun

changelessly

handiwork

unheralded

dovecote

anode

spellbind

psychologist

improvisational

prejudiced

apply

pokey

secular

masterfully

at

overdrawn

costar

scruff

awareness

impurely

Rubric:

* use of try/catch

*use of while loop to collect input

use of array of LinkedLists

*correctly put string into the right list. zero points for 26 statements or 26 cases in switch statement

*prompt user for input

*display correct list

*allow user to enter upper case or lower case character

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions