src/com/company/Server/CentralNode.java
public String saveUserInfo(Client client, SynchronizedArrayList<WorkerThread> clientsConnected) {

        int i = 0;
        boolean found = false;
        while (!found && i < clientsConnected.get().size()) {
            if (client.getId() == clientsConnected.get().get(i).client.getId()) {
                found = true;
            } else {
                i++;
            }
        }

        clientsConnected.removeElement(clientsConnected.get().get(i));

        this.readWriteFiles.writeJSONFile(client);

        return "Follow the recommendations of your local government and stay at home!";
    }
/**
     * Method responsible for saving client informations
     * @param client           client object (model)
     * @param clientsConnected array of clients currently connected to the application
     * @return message : Follow the recommendations of your government and stay at home!
     */
Method responsible for saving client informations
@param client           client object (model)
@param clientsConnected array of clients currently connected to the application
@return message : Follow the recommendations of your government and stay at home!
Method responsible for saving client informations @param client client object ( model ) @param clientsConnected array of clients currently connected to the application @return message : Follow the recommendations of your government and stay at home!
public String saveUserInfo(Client client, SynchronizedArrayList<WorkerThread> clientsConnected) {
        int i = 0;
        boolean found = false;
        while (!found && i < clientsConnected.get().size()) {
            if (client.getId() == clientsConnected.get().get(i).client.getId()) {
                found = true;
            } else {
                i++;
            }
        }
        clientsConnected.removeElement(clientsConnected.get().get(i));
        this.readWriteFiles.writeJSONFile(client);
        return "Follow the recommendations of your local government and stay at home!";
    }
public String saveUserInfo ( Client client , SynchronizedArrayList < WorkerThread > clientsConnected ) { int i = 0 ; boolean found = false ; while ( ! found && i < clientsConnected . get ( ) . size ( ) ) { if ( client . getId ( ) == clientsConnected . get ( ) . get ( i ) . client . getId ( ) ) { found = true ; } else { i ++ ; } } clientsConnected . removeElement ( clientsConnected . get ( ) . get ( i ) ) ; this . readWriteFiles . writeJSONFile ( client ) ; return "Follow the recommendations of your local government and stay at home!" ; }
Method responsible for saving client informations
 @param client           client object (model)
 @param clientsConnected array of clients currently connected to the application
 @return message : Follow the recommendations of your government and stay at home!
Method responsible for saving client informations @param client client object ( model ) @param clientsConnected array of clients currently connected to the application @return message : Follow the recommendations of your government and stay at home!