Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

For this problem you will write code to manage bibliographic citations. Author To start, implement the class Author.java: Author - lastName : String get -

image text in transcribed

image text in transcribed

For this problem you will write code to manage bibliographic citations. Author To start, implement the class Author.java: Author - lastName : String get - firstName : String get - middleInitial : String get + Author(String, String, String) + Author(String) + getCitation(): String + splitAuthors(String) : Author[] The class has two constructors: 1. The first takes three String's and uses them to set the 2. The second takes the author's full name, and needs to do a bit of string processing to separate the attributes. Examples of valid inputs to this constructor are: "Henry David Thoreau" "Henry D Thoreau" "H. D. Thoreau" "Henry Thoreau" In every case, the three names are separated by only spaces, you can use name.split(" ") to separate the names into an array of substrings. The middle initial may not be present at all, in which case that attribute should be set to the empty string, (""); otherwise, the initial should be set in should come in the format: "D." capitalized first letter followed by a period. The method getCitation() should return a string in the format "Thoreau, H. D.", i.e.: , .

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_2

Step: 3

blur-text-image_step3

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

More Books

Students explore these related Databases questions