src/main/Block.java
public String calculateHash(int nonce) {
        String calculatedhash = StringUtil.applySha256( 
                previousHash +
                Long.toString(timeStamp) +
                Integer.toString(nonce)
                );
        return calculatedhash;
    }
// Creates a String hash of all the variables of the block
Creates a String hash of all the variables of the block
Creates a String hash of all the variables of the block
public String calculateHash(int nonce) {
        String calculatedhash = StringUtil.applySha256( 
                previousHash +
                Long.toString(timeStamp) +
                Integer.toString(nonce)
                );
        return calculatedhash;
    }
public String calculateHash ( int nonce ) { String calculatedhash = StringUtil . applySha256 ( previousHash + Long . toString ( timeStamp ) + Integer . toString ( nonce ) ) ; return calculatedhash ; }
Creates a String hash of all the variables of the block
Creates a String hash of all the variables of the block