guys i have problem with this project Library management System
first many logic problem
second : in case number 3 i must update the information about book
finaly: i must save the book in txt file
plzz plz plzz plzz plzz plzz plzz plzz plzz plzz plzz helpppppppppppppppp
#
import java.util.Scanner;
public class Books
public static void main (String[]args)
{
int a;
Scanner a = new Scanner(System.in);
System.out.println("1. Add new Book");
System.out.println("2. Remove old Book");
System.out.println("3. Update book information");
System.out.println("4. Quit the application");
System.out.println(" Enter an option:");
a = in.nextInt();
switch(a);
}
int Isbn;
String Title;
int Npages;
int Edition;
int getIsbn(){
return Isbn;
}
void setIsbn(int vIsbn){
this.Isbn=vIsbn;
}
String getTitle(){
return Title;
}
void setTitle(String vTitle){
this.Title=vTitle;
}
int getNpages(){
return Npages;
}
void setNpages(int vNpages){
this.Npages=vNpages;
}
int getEdition(){
return Edition;
}
void setEdition(int vEdition){
this.Edition=vEdition
}
case 1: Scanner in = new Scanner(System.in);
Books b = new Books();
System.out.println("Enter the book ISBN");
b.setISBN(in.nextInt());
System.out.println("Enter the book Title");
b.setTitle(in.nextLine());
System.out.println("Enter the book NBPages");
b.setNBPages(in.nextInt());
System.out.println("Enter the book Edition");
b.setEdition(in.nextInt());
//save the book in txt file.
break;
case 2:
if(Menu.menuChoice == 2 && Library.bookList.size() > 0){
Library.removeBook();
}
if(Menu.menuChoice == 2 && Library.bookList.isEmpty()){
System.out.println(Messages.invalidInputMessage);
Menu.displayMenu();
}
break;
case 3:
break;
case 4: System.exit(0);
break;