How can I enable the assert keyword in Eclipse?
assert
public class A { public static void main(String ... args) { System.out.println(1
You need to go to run configurations and add vm arguments as "-enableassertions" (or) "-ea"
After that when you run code with assert statement, you will see assert in action.