I have a enum for various operations, I want to iterate through the enum Operations
public enum Operations
{
create,update,delete,view,compare,login
}
How can i achieve this?
for (Operations op : Operations.values()) {
...
}
I have a enum for various operations, I want to iterate through the enum Operations
public enum Operations
{
create,update,delete,view,compare,login
}
How can i achieve this?
for (Operations op : Operations.values()) {
...
}
精彩评论