public static void validateParticipantIdsDiffer(String participantId1,String participantId2) throws CryptoException {
  if (participantId1.equals(participantId2)) {
    throw new CryptoException("Both participants are using the same participantId (" + participantId1 + "). This is not allowed. "+ "Each participant must use a unique participantId.");
  }
}

public static void validateParticipantIdsDiffer ( String participantId1 , String participantId2 ) throws CryptoException { if ( participantId1 . equals ( participantId2 ) ) { throw new CryptoException ( "Both participants are using the same participantId (" + participantId1 + "). This is not allowed. " + "Each participant must use a unique participantId." ) ; } }
validates that the given participant ids are not equal . ( for the j - pake exchange , each participant must use a unique id . )
