Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean checkWord(String s) throws SQLException {
- String sql = null;
- sql = "SELECT * FROM `surface` WHERE `surface` LIKE '" + s + "'";
- Statement stmts = null;
- stmts = conn.createStatement();
- rs = stmts.executeQuery(sql);
- if (rs.next()) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement