Question: You are to create a java program that has the following specifications: 1 . The program must have a new user defined class that contains
You are to create a java program that has the following specifications:
The program must have a new user defined class that contains methods
The first method will read your first and last name, with a dash in between into a linked list. You must use a dialog box to read in each character, one character at a time. One way of doing this would be to read a character until the user types an Reading the first and last name as a total string will not be accepted.
The second method will print what was read in For example, if I were reading in my name, the output would be:
N i c k T o p
Each character is to be read into a linked list, therefore, each character will be an element of the node in the linked list. The linked list is to be part of the class as well. DO NOT USE SCANNER, CHAR, PRIVATE, GLOBAL VARIABLES. DO NOT USE LINKEDLIST
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
