battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeSearchRegisterLog in
Share
 

 java use an enum with in an if statement

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 415
Join date : 2011-08-02

java use an enum with in an if statement Empty
PostSubject: java use an enum with in an if statement   java use an enum with in an if statement EmptySun Mar 24, 2019 7:32 pm

Code:
public enum enumFail {
   // armored,ape
   fail, requip, lose
   // pain -> requip
   // stand by(mode) : requip / dequip
}


if (enumFail.fail.equals(failure.fail)) {}

king Twisted Evil

_________________
MB over and out emp it up
Back to top Go down
 
java use an enum with in an if statement
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: