document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. public enum NomeEnumerazione
  2. {
  3.     UNO(1), DUE(2), TRE(3);
  4.    
  5.     private int valore;
  6.    
  7.     NomeEnumerazione(int valore)
  8.     {
  9.         this.valore = valore;
  10.     }
  11.  
  12.     public int getValore()
  13.     {
  14.         return valore;
  15.     }
  16.  
  17.     public void setValore(int valore)
  18.     {
  19.         this.valore = valore;
  20.     }
  21.    
  22.     @Override
  23.     public String toString()
  24.     {
  25.         return ""+valore;
  26.     }
  27. }
');