//Create the transaction
TokenFeeScheduleUpdateTransaction transaction = new TokenFeeScheduleUpdateTransaction()
.setTokenId(tokenId)
.setCustomFees(customFee)
//Freeze the unsigned transaction, sign with the fee schedule key of the token, submit the transaction to a Hedera network
TransactionResponse txResponse = transaction.freezeWith(client).sign(feeScheduleKey).execute(client);
//Request the receipt of the transaction
TransactionReceipt receipt = txResponse.getReceipt(client);
//Get the transaction consensus status
Status transactionStatus = receipt.status;
System.out.println("The transaction consensus status is " +transactionStatus);
//Version: 2.0.9