write the java mini project and upload the code .class as like this and also provide the screenshot of the code. use these method for insert ,remove and search public boolean insertBook(Book b) { for(int i=0; i
write the java mini project and upload the code .class as like this and also provide the screenshot of the code.
use these method for insert ,remove and search
public boolean insertBook(Book b) {
for(int i=0; i<books.length; i++) {
if(books[i] == null) {
books[i] = b;
return true;
}
}
return false;
}
public boolean removeBook(Book b) {
for(int i=0; i<books.length; i++) {
if(books[i].getIsbn().equalsIgnoreCase(b.getIsbn())) {
for(int j=i; j<books.length-1; j++) {
books[j] = books[j+1];
}
return true;
}
}
return false;
}
public Book searchBook(String isbn) {
for(int i=0; i<books.length; i++)
{
if(books[i] != null)
{
if(books[i].getIsbn().equals(isbn))
{
return books[i];
}
}
}
return null;
}
public void showAllBooks() {
for(int i=0; i<books.length; i++) {
if(books[i] != null)
{
books[i].showDetails();
}
}
}
![Bike
Vehicle
ParkingAreaOperations
Car
ParkingArea
ParkingArea
Bike
String name;
Vehicle vehicles [=new Vehicle[100]
String bikeNum
void setBike(String bikeNum)
void setName(String name)
String getName()
String getBikeNum()
abstract void showDetails()
void showDetails()
Car
String carNum
Vehicle
String ownerName
String ownerContactNum;
String date;
String time;
void setcarNum(String carNum)
String getcarNum(0
void setownerName(String ownerName)
String getownerName()
void showDetails()
void setownerContactNum(String
ownerContactNum)
String getOwnerContactNum)
ParkingAreaOperations
String getName()
void setDate(String date)
String getDate()
void setTime(String time)
String getTime()
boolean insertCar(Car c)
boolean removeCar(Car c)
Vehicle searchVehicle(String carNum)
boolean insertBike(Bike b)
boolean removeBike(Bike b)
Vehicle searchVehicle(String bikeNum)
void showDetails()
void showAllVehicles()](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7fcc56f6-4e4e-4f35-8b3c-5ae12769bb25%2F6b93be8b-83aa-400f-9b41-0f05d067143b%2Frvbkgl_processed.png&w=3840&q=75)
![Start
The Start class contains the main method. Inside the main method the application prompts the user
to choose among the following options:
1.Bike Management
2.Car Management
3. Exit
Upon choosing any of the option the user is given some further options to choose from:
Options for Bike Management:
1. Insert New Bike
Remove Bike
4. Show All Vehicles
5. Go Back
2.
3. Search Bike
Options for Car Management:
1. Insert New Car
2. Remove Car
3. Search Car
4. Show All Vehicles
5. Go Back
The application will prompt the user to give input for the necessary values as per the option they
choose. The application will repeatedly go on according to the user choices.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7fcc56f6-4e4e-4f35-8b3c-5ae12769bb25%2F6b93be8b-83aa-400f-9b41-0f05d067143b%2Ffgrc2rb_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 5 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)