Block.java


SUBMITTED BY: Guest

DATE: Feb. 2, 2014, 9:18 p.m.

FORMAT: Java

SIZE: 500 Bytes

HITS: 1966

  1. //KriszCraftCoin project
  2. // Block model
  3. package model;
  4. /**
  5. * Created by KRISZTIAN on 2014.02.01..
  6. */
  7. public class Block {
  8. private int nTime, nHeight;
  9. private String hash, creator;
  10. public Block(int nTime, String hash, String creator, int nHeight){
  11. this.nTime = nTime;
  12. this.hash = hash;
  13. this.creator = creator;
  14. this.nHeight = nHeight;
  15. }
  16. public static String getHash(){
  17. return this.hash
  18. }
  19. }

comments powered by Disqus