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:
...
Okay, thank you guys for your replies.
Firstly I cannot believe that my book is not correct, but you said that "'Exception handled in main' should never be printed." and I think it is sensible. Secondly I learnt the reason of different...
Hi,
I was trying to execute the following codes, but the something that I don't undestand was happen. The program was compiled differently according to ouput picture of the program in my java book....