Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to create a java program that has the following specifications: The program must have a new user defined class that contains 2 methods

You are to create a java program that has the following specifications:
The program must have a new user defined class that contains 2
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:
Nick-Top
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. 1) Make sure to use the nodes and links described in the assignment
2) Do not use global variables, private, char, links>, scanner
3) Use JOption to use the dialog boxes for the name as described in the assignment
4) Read assignment carefully
image text in transcribed

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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago