EnumType.values() Method
public class YourEnumClass {
public enum YourEnums{
CREATE,
EVERY_UPDATE,
FIRST_UPDATE,
DELETE
}
}
List yourEnumList=Arrays.asList(YourEnumClass.YourEnums.values());
EnumSet.allOf() Method
public class YourEnumClass {
public enum YourEnums{
CREATE,
EVERY_UPDATE,
FIRST_UPDATE,
DELETE
}
}
List yourEnumList=EnumSet.allOf(YourEnumClass.YourEnums.class);
The LoveLetter Virus: The Infamous Cyberattack That Shook the World
October 8, 2024
No Comments
Read More »
Understanding TLS Proxies: How They Work and Why They’re Important
August 11, 2024
No Comments
Read More »
October 13, 2022
No Comments
Javascript For Loops in the ECMA Standard Simple For Loop The simplest type of for loop increments a variable as its iteration method. The variable
October 14, 2022
No Comments
Retriving a List of attribute (field) values from a Object List (Array List) List users=new ArrayList<>(); List userIds=users .stream() .map(u->u.getId()) .collect(Collectors.toList()); Filter Objects by Attribute
October 18, 2022
No Comments
let message = ‘helloWorld’ let convertedMessage=message.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`); console.log(convertedMessage); output -> hello_world How to Convert Camel Case to Snake Case JavaScript
October 18, 2022
No Comments
Things to know about the latest Kali release. 1. New Tools Here are all the new tools that come with the release. BruteShark – Network Analysis
Java Enum to List