Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Method to add score to a student dorm
- public void addScoreByOne(String studentDorm) {
- try {
- String question = "UPDATE elevhem SET huspoang = huspoang +1 WHERE elevhemsnamn='" + studentDorm + "'";
- hwdb.update(question);
- } catch (InfException e) {
- System.out.println("Felmeddelande" + e.getMessage());
- }
- }
- //Method to remove score from student dorm
- public void removeScoreByOne(String studentDorm) {
- try {
- String question = "UPDATE elevhem SET huspoang = huspoang -1 WHERE elevhemsnamn='" + studentDorm + "'";
- hwdb.update(question);
- } catch (InfException e) {
- System.out.println("Felmeddelande" + e.getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement