BicepBuddyApp/src/main/java/Matching/MatchController.java
public static void acceptMatchOther(Match match) {
		Master.appLogger.info(":: Match accepted from " + 
				UserController.getInstance().onlyGetUserById(match.getOther()).toString() + " by " + 
				UserController.getUser().toString());
		
		//add to other accepted
		match.accept();
		
		// Save Status change to DB
		updateMatch(match);

		List<Match> matches = UserController.getUser().getWaiting();
		matches.remove(match);
		UserController.getUser().setWaiting(matches);
		
		matches = UserController.getUser().getAccepted();
		matches.add(match);
		UserController.getUser().setAccepted(matches);
		// Updating Array State for Other User
		UserController.getInstance().updateMatchedArrayState(UserController.getUser());
	}
/**
	 * Accept match other.
	 *
	 * @param match the match
	 */
Accept match other.
@param match the match
Accept match other . @param match the match
public static void acceptMatchOther(Match match) {
		Master.appLogger.info(":: Match accepted from " + 
				UserController.getInstance().onlyGetUserById(match.getOther()).toString() + " by " + 
				UserController.getUser().toString());
		match.accept();
		updateMatch(match);
		List<Match> matches = UserController.getUser().getWaiting();
		matches.remove(match);
		UserController.getUser().setWaiting(matches);
		matches = UserController.getUser().getAccepted();
		matches.add(match);
		UserController.getUser().setAccepted(matches);
		UserController.getInstance().updateMatchedArrayState(UserController.getUser());
	}
public static void acceptMatchOther ( Match match ) { Master . appLogger . info ( ":: Match accepted from " + UserController . getInstance ( ) . onlyGetUserById ( match . getOther ( ) ) . toString ( ) + " by " + UserController . getUser ( ) . toString ( ) ) ; match . accept ( ) ; updateMatch ( match ) ; List < Match > matches = UserController . getUser ( ) . getWaiting ( ) ; matches . remove ( match ) ; UserController . getUser ( ) . setWaiting ( matches ) ; matches = UserController . getUser ( ) . getAccepted ( ) ; matches . add ( match ) ; UserController . getUser ( ) . setAccepted ( matches ) ; UserController . getInstance ( ) . updateMatchedArrayState ( UserController . getUser ( ) ) ; }
Accept match other.
Accept match other .
//add to other accepted // Save Status change to DB // Updating Array State for Other User