@@ -0,0 +1,387 @@
+import java.util.Random;%0A%0Apublic class Blockchain %7B%0A%0A%09public int length = 0;%0A%09%0A%09public int nonce; //in our simulation, the nonce is a random number. Each miner guesses numbers until one of them finds the nonce.%0A%09//no hashing or proof of work involved%0A%09%0A%09public void newNonce()%7B%0A%09%09Random rand = new Random();%0A%09%09nonce = rand.nextInt(10000000);%0A%09%7D%0A%09public void newBlock()%7B%0A%09%09length++;%0A%09%7D%0A%7D%0A

Create Blockchain.java