Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public boolean registerAccount(final User user){
  2. if (statement != null){
  3. final String userName = user.getUserName();
  4. final String password = user.getPassword();
  5. try {
  6. return statement.execute("INSERT INTO "+USER_TABLE_NAME+" VALUES (" + userName +"," + password +")");
  7. } catch (SQLException e) {
  8. e.printStackTrace();
  9. }
  10. }
  11. return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement