public static void main(String[] args) throws IOException, SQLException {
            Connection conn=DriverManager.getConnection(url,user,password);
    
       PreparedStatement stmt = null;
         Set<Book> bookSet = new TreeSet<>();
        String booksCount="";
         ResultSet rs=null;
         float aa=10.0f;
         int bb=10;
        try {
            stmt = conn.prepareStatement("SELECT COUNT(*) FROM BOOK");
            rs = stmt.executeQuery();

            if (rs.next()) {
                   System.out.print(rs.getInt(1)/(double)aa);
            }
        } catch (SQLException ex1) {
            Logger.getLogger(BookDAO.class.getName()).log(Level.SEVERE, null, ex1);
        } finally {
            if (conn != null) {
                try {
                  
                    conn.close();
                } catch (SQLException ex1) {
                    Logger.getLogger(BookDAO.class.getName()).log(Level.SEVERE, null, ex1);
                }
            }
        }
        System.out.println(new Timestamp(new Date().getTime()));
}