Can anyone please tell me how should I use the four permissible forms of enabling assertions in java.
-ea:<package name> -ea:<class name> -ea -ea:...
I have two source files test1.java and test2.java,so I use assertions in both the files,and these files are in A package.So my current directory shows : C:\j2sdk1.4.2_04\bin\javaexamples\A> And I want to enable assertions in these two files at the package level,like
p.s. this is so basic anyone should know it. The fact that you don't shows you've "learned" Java the wrong way, meaning using only an IDE with no exposure to the compiler or runtime.