Guest User

Untitled

a guest
Dec 17th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. enum {
  2. bobfalse,
  3. bobtrue
  4. } customBool;
  5.  
  6.  
  7. ----
  8.  
  9. customBool bob;
  10.  
  11. bob = true; //notice it's not bobtrue;
  12.  
  13. switch(bob)
  14. {
  15. case bobtrue:
  16. //Bob will go here
  17. break;
  18. case bobfalse:
  19. //Bob will NOT go here
  20. break;
  21. default:
  22. }
Add Comment
Please, Sign In to add comment