Write a java program that repeatedly prompts the user to input a string starting with letters from the English alphabet. The program must stop getting input when the user inputs the string “STOP” Consider The word STOP as case insensitive (i.e. STOP = stop = Stop = Stop ….) . Then the program must display the words starting with each letter (Case-Sensitive) from the alphabet in a separate line (e.g. you need to make a new line after all words starting with a specific letter are finished. Your program must be written according to the following rules: 1- Create an array list of 52 linked lists. 2- Each linked list will have the strings starting with a specific letter each in a separate node. For example element 0 in the array list will have a linked list of the strings starting with a and element 1 in the array list will have a linked list of the Strings starting with A, element 2 in the array list will have a linked list of the strings starting with b element 3 in the array list will have a linked list of the strings starting with B,……, element 50 in the array list will have a linked list of the strings starting with z element 51 in the array list will have a linked list of the strings starting with Z 3- Use the classes MyArrayList and MylinkedList. (No Need to re-implement them). 4- Strings NOT starting with a letter from the English alphabet must be ignored. Consider the case when the user input the following strings consequently: Ali Ahmad Abed Basel basel Ayshe ayshe 123 Anas Baba betul Zaki Ziko zakiyya stop The output will be: ayshe Ali Ahmad Abed Ayshe Anas basel betul Basel Baba zakiyya Zaki Ziko
Write a java program that repeatedly prompts the user to input a string starting with letters from the English alphabet. The program must stop getting input when the user inputs the string “STOP” Consider The word STOP as case insensitive (i.e. STOP = stop = Stop = Stop ….) . Then the program must display the words starting with each letter (Case-Sensitive) from the alphabet in a separate line (e.g. you need to make a new line after all words starting with a specific letter are finished. Your program must be written according to the following rules: 1- Create an array list of 52 linked lists. 2- Each linked list will have the strings starting with a specific letter each in a separate node. For example element 0 in the array list will have a linked list of the strings starting with a and element 1 in the array list will have a linked list of the Strings starting with A, element 2 in the array list will have a linked list of the strings starting with b element 3 in the array list will have a linked list of the strings starting with B,……, element 50 in the array list will have a linked list of the strings starting with z element 51 in the array list will have a linked list of the strings starting with Z 3- Use the classes MyArrayList and MylinkedList. (No Need to re-implement them). 4- Strings NOT starting with a letter from the English alphabet must be ignored. Consider the case when the user input the following strings consequently: Ali Ahmad Abed Basel basel Ayshe ayshe 123 Anas Baba betul Zaki Ziko zakiyya stop The output will be: ayshe Ali Ahmad Abed Ayshe Anas basel betul Basel Baba zakiyya Zaki Ziko
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Write a java program that repeatedly prompts the user to input a string starting with letters from the English alphabet. The program must stop getting input when the user inputs the string “STOP” Consider The word STOP as case insensitive (i.e. STOP = stop = Stop = Stop ….) . Then the program must display the words starting with each letter (Case-Sensitive) from the alphabet in a separate line (e.g. you need to make a new line after all words starting with a specific letter are finished.
Your program must be written according to the following rules:
1- Create an array list of 52 linked lists.
2- Each linked list will have the strings starting with a specific letter each in a separate node. For example element 0 in the array list will have a linked list of the strings starting with a and element 1 in the array list will have a linked list of the Strings starting with A, element 2 in the array list will have a linked list of the strings starting with b element 3 in the array list will have a linked list of the strings starting with B,……, element 50 in the array list will have a linked list of the strings starting with z element 51 in the array list will have a linked list of the strings starting with Z
3- Use the classes MyArrayList and MylinkedList. (No Need to re-implement them).
4- Strings NOT starting with a letter from the English alphabet must be ignored.
Consider the case when the user input the following strings consequently:
Ali Ahmad Abed Basel basel Ayshe ayshe 123 Anas Baba betul Zaki Ziko zakiyya stop
The output will be:
ayshe
Ali Ahmad Abed Ayshe Anas
basel betul
Basel Baba
zakiyya
Zaki Ziko
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education