Thank you so much Cornix. I did it in Eclipse and Netbeans like that:
In Eclipse:
Run->Run Configurations->Arguments->VM Arguments-> ....
I wrote -ea in VM Arguments.
In Netbeans:
Run->Set...
Type: Posts; User: hefese
Thank you so much Cornix. I did it in Eclipse and Netbeans like that:
In Eclipse:
Run->Run Configurations->Arguments->VM Arguments-> ....
I wrote -ea in VM Arguments.
In Netbeans:
Run->Set...
The following program is not working as I want. The assert() function is not working while I'm entering a number which is out of range 0-10. Whereas, according to my book, it is working like that:
...