Question: I created a book app in Java that tracks the statuses to be read, completed, did not finish and want to read. I ' m

I created a book app in Java that tracks the statuses to be read, completed, did not finish and want to read. I'm working on adding a GUI and connecting to SQL but I keep getting a lamda error endencies
d to '( public static void main(String[] args){
launch(args);
}
@Override
public void start(Stage stage){
TableColumn vbox.getChildren().addAll(table);
Scene scene = new Scene(vbox);
stage.setScene(scene);
stage.setTitle("Book Library");
stage.show();
}
private void loadBooksFromDatabase(){ no usages
BookLibraryCon BookLibraryCon = new BookLibraryCon();
BookLibraryCon.getBooks().forEach(book -> data.add(book));
}
} import java.sql.SQLException;
public class BookLibraryCon {
public void getBooks(){ no usages 1 related problem
String query = "SELECT * FROM books";
try (Connection conn = DatabaseConnection.getConnection();
PreparedStatement stmt = conn.prepareStatement(query);
ResultSet rs = stmt.executeQuery()){
while (rs.next()){
System.out.println("ID: "+ rs.getString( columnLabel: "id"));
System.out.println("Title: "+ rs.getString( columnLabel: "title"));
System.out.println("Author: "+ rs.getString( columnLabel: "author"));
System.out.println("Status: "+ rs.getString( columnLabel: "status"));
}
} catch (SQLException e){
e.printStackTrace();
}
}
}// com.example.s200project.BookStatus.java
public enum BookStatus {
COMPLETED, no usages
WANT_TO_READ, no usages
TO-BE-READ, no usages
DID_NOT_FINISH, no usages
public BookStatus get(){ nousages
( public BookStatus {:returnnull;
}
public void set(BookStatus status){ nousages
}
}
I created a book app in Java that tracks the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!