Answered step by step
Verified Expert Solution
Question
1 Approved Answer
complete the following: Streams Create a Novel class with private instance variables, constructor parameters, and accessor methods for title , author name , and year
complete the following:
Streams
Create a Novel class with private instance variables, constructor parameters, and accessor methods for titleauthor name and year published
Create a BookStore class that contains an instance variable for the BookStores name. The BookStore class has a public static void main method which creates a BookStore object. The BookStore contains a second instance variable that is an ArrayList of Novel references; the BookStore constructor populates the ArrayList with the following data:
Title
Author
Year Published
The Adventures of Augie March
Saul Bellow
All the Kings Men
Robert Penn Warren
American Pastoral
Philip Roth
An American Tragedy
Theodore Dreiser
Animal Farm
George Orwell
Appointment in Samarra
John O'Hara
Are You There God? It's Me Margaret.
Judy Blume
The Assistant
Bernard Malamud
At SwimTwoBirds
Flann O'Brien
Atonement
Ian McEwan
Beloved
Toni Morrison
The Berlin Stories
Christopher Isherwood
The Big Sleep
Raymond Chandler
The Blind Assassin
Margaret Atwood
Blood Meridian
Cormac McCarthy
Brideshead Revisited
Evelyn Waugh
The Bridge of San Luis Rey
Thornton Wilder
Call It Sleep
Henry Roth
Catch
Joseph Heller
The Catcher in the Rye
JD Salinger
A Clockwork Orange
Anthony Burgess
Page of Sept
The Confessions of Nat Turner
William Styron
The Corrections
Jonathan Franzen
The Crying of Lot
Thomas Pynchon
A Dance to the Music of Time
Anthony Powell
The Day of the Locust
Nathanael West
Death Comes for the Archbishop
Willa Cather
A Death in the Family
James Agee
The Death of the Heart
Elizabeth Bowen
Deliverance
James Dickey
Dog Soldiers
Robert Stone
Falconer
John Cheever
The French Lieutenant's Woman
John Fowles
The Golden Notebook
Doris Lessing
Go Tell It on the Mountain
James Baldwin
Gone with the Wind
Margaret Mitchell
The Grapes of Wrath
John Steinbeck
Gravity's Rainbow
Thomas Pynchon
The Great Gatsby
F Scott Fitzgerald
A Handful of Dust
Evelyn Waugh
The Heart Is a Lonely Hunter
Carson McCullers
The Heart of the Matter
Graham Greene
Herzog
Saul Bellow
Housekeeping
Marilynne Robinson
A House for Mr Biswas
VS Naipaul
I, Claudius
Robert Graves
Infinite Jest
David Foster Wallace
Invisible Man
Ralph Ellison
Light in August
William Faulkner
The Lion, The Witch and the Wardrobe
CS Lewis
Page of Sept
Lolita
Vladimir Nabokov
Lord of the Flies
William Golding
The Lord of the Rings
JRR Tolkien
Loving
Henry Green
Lucky Jim
Kingsley Amis
The Man Who Loved Children
Christina Stead
Midnight's Children
Salman Rushdie
Money
Martin Amis
The Moviegoer
Walker Percy
Mrs Dalloway
Virginia Woolf
Naked Lunch
William Burroughs
Native Son
Richard Wright
Neuromancer
William Gibson
Never Let Me Go
Kazuo Ishiguro
George Orwell
On the Road
Jack Kerouac
One Flew Over the Cuckoo's Nest
Ken Kesey
The Painted Bird
Jerzy Kosinski
Pale Fire
Vladimir Nabokov
A Passage to India
EM Forster
Play It as It Lays
Joan Didion
Portnoy's Complaint
Philip Roth
Possession
AS Byatt
The Power and the Glory
Graham Greene
The Prime of Miss Jean Brodie
Muriel Spark
Rabbit, Run
John Updike
Ragtime
EL Doctorow
The Recognitions
William Gaddis
Red Harvest
Dashiell Hammett
Revolutionary Road
Richard Yates
Page of Sept
The Sheltering Sky
Paul Bowles
SlaughterhouseFive
Kurt Vonnegut
Snow Crash
Neal Stephenson
The SotWeed Factor
John Barth
The Sound and the Fury
William Faulkner
The Sportswriter
Richard Ford
The Spy Who Came in from the Cold
John le Carr
The Sun Also Rises
Ernest Hemingway
Their Eyes Were Watching God
Zora Neale Hurston
Things Fall Apart
Chinua Achebe
To Kill a Mockingbird
Harper Lee
To the Lighthouse
Virginia Woolf
Tropic of Cancer
Henry Miller
Ubik
Philip K Dick
Under the Net
Iris Murdoch
Under the Volcano
Malcolm Lowry
Watchmen
Alan Moore and Dave Gibbons
White Noise
Don DeLillo
White Teeth
Zadie Smith
Wide Sargasso Sea
Jean Rhys
Create the following BookStore methods using appropriate Stream methods:
Method name
Parameters
Resulting behavior
printAllTitles
none
Prints all titles in UPPERCASE
printBookTitle
String title
Prints all titles that match the specified parameter
printTitlesInAlphaOrder
none
Prints all titles in alphabetical order,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started