Lab2/src/main/java/MutexFix/IntegerObj.java
/**
     * this method used to increment object variable
     * @return int - not used
     */
this method used to increment object variable
@return int - not used
this method used to increment object variable @return int - not used
int inc(){
        try{
            mutex.acquire();
            try{
                this.value++;
                return this.value;
            }finally{
                mutex.release();
            }
        }catch(InterruptedException  e){
        }
        return 0;
    }
int inc ( ) { try { mutex . acquire ( ) ; try { this . value ++ ; return this . value ; } finally { mutex . release ( ) ; } } catch ( InterruptedException e ) { } return 0 ; }
this method used to increment object variable
 @return int - not used
this method used to increment object variable @return int - not used