Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean registerAccount(final User user){
- if (statement != null){
- final String userName = user.getUserName();
- final String password = user.getPassword();
- try {
- return statement.execute("INSERT INTO "+USER_TABLE_NAME+" VALUES (" + userName +"," + password +")");
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement