Implementation of digitalcoin in java