SHARE
TWEET

Untitled

a guest Jun 25th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Status {
  2.     OK,
  3.     ERROR,
  4.  
  5.     @Deprecated
  6.     PROBLEM
  7. }
  8.      
  9. enum Status {
  10.     OK,
  11.     ERROR,
  12.  
  13.     /**
  14.      * @deprecated Use ERROR instead.
  15.      */
  16.     @Deprecated
  17.     PROBLEM
  18. }
  19.      
  20. public enum Characters {
  21.     STAN,
  22.     KYLE,
  23.     CARTMAN,
  24.     @Deprecated KENNY
  25. }
  26.      
  27. public class Test {
  28.  
  29.     public static void main(String[] arg) {
  30.  
  31.         System.err.println(EnumTest.A);
  32.         System.err.println(EnumTest.B);
  33.  
  34.     }
  35.  
  36.     public static enum EnumTest {
  37.         A, @Deprecated B, C, D, E;
  38.     }
  39.  
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top