/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package userIO;
import java.sql.*;
import ConnectToDB.ConnecToDB;
import java.util.ArrayList;

/**
 *
 * @author Soukaina
 */
public class User {
 
    private int userId;
    private String username;
  
    
    public User()
    {
        
    }
    
    public User (int userId, String username)
    {
        this.userId=userId;
        this.username=username;
        
    }
    
  //getters and setters 
   void setUserId(int id)
   {
       userId=id;
   }
  void setUserName(String username)
  {
      this.username=username;
  }
  
  int getUserId()
  {
      return userId;
  }
  String getUsername()
  {
      return username;
  }
}

@@ -250,16 +250,88 @@
 necToDB;
+ // Importing the package ConnectToDB that has a class called ConnecToDB
 %0D%0Aimport
@@ -390,16 +390,19 @@
 a%0D%0A */%0D%0A
+ %0D%0A
 public c
@@ -417,16 +417,17 @@
 r %7B%0D%0A %0D%0A
+%5C
     priv
@@ -437,26 +437,28 @@
  int userId;
+ 
 %0D%0A
+%5C
     private 
@@ -469,24 +469,25 @@
 ng username;
+ 
 %0D%0A  %0D%0A    %0D%0A
@@ -480,24 +480,38 @@
 ; %0D%0A  %0D%0A    
+// constractor
 %0D%0A    public
@@ -543,24 +543,63 @@
 %0A    %7D%0D%0A    
+// passing variables to the constractor
 %0D%0A    public
@@ -753,16 +753,134 @@
 tters %0D%0A
+   int getUserId()%0D%0A  %7B%0D%0A      return userId;%0D%0A  %7D%0D%0A  %0D%0A  String getUsername()%0D%0A  %7B%0D%0A      return username;%0D%0A  %7D%0D%0A  %0D%0A
    void 
@@ -929,16 +929,21 @@
 %0D%0A   %7D%0D%0A
+   %0D%0A
   void s
@@ -1021,114 +1021,8 @@
  %0D%0A 
- int getUserId()%0D%0A  %7B%0D%0A      return userId;%0D%0A  %7D%0D%0A  String getUsername()%0D%0A  %7B%0D%0A      return username;%0D%0A  %7D
 %0D%0A%7D%0D

Update User.java