Wednesday, December 23, 2009

Assertions

An assertion is a statement in java which enables us to test assumptions about the programs. It contains a boolean expression which is an assumption about the program. If the assumption is true it is confirmed and it improves confidence in correctness, otherwise an error will be thrown. Assertions can be enabled or disabled. When they are disabled they just become empty statements.

An assertion has two forms.
The first is :

assert Expression1;

This statement is just evaluated and if it converges to false only an AssertionError is thrown.

The second is :

assert Expression1 : Expression2;

Expression1 is a boolean, Expression2 has a value. Expression1 is executed. If it fails the system passes the value of Expression2 to the appropriate constructor of AssertionError. AssertionError uses string representation of this value as the error's detail message.

For a more detailed discussion over the topic check out java documentation.

http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html

Monday, December 7, 2009

Europe Tour 2009

15 August 2009 - 30 August 2009.
3 buddies (Ozgur Avci-Ahmet Olgun-Erdinc Pehlivan).

AirbusA320(Moscow-Amsterdam/Amsterdam-Moscow)-BMW5(Remaining).

8 countries, too many cities...


View Larger Map


Moscow(Russia-R) - Amsterdam(Netherlands-N) - Brussels(Belgium-B) - Paris(France-F) - Bordeaux(F) - Arcachon(F) - La Dune Du Pyla(F) - San Sebastian(Spain-S) - Barcelona(S) - Carcassonne(F) - Montpelier(F) - Marseille(F) - Toulon(F) - Saint Tropez(F) - Cannes(F) - Nice(F) - Eze(F) - Monaco(Monaco-M) - Monte Carlo(M) - San Remo(Italy-I) - Genova(I) - Milano(I) - Verona(I) - Venezia(I) - Austria - Germany - Eindhoven(N) - Amsterdam(N) - Moscow(R)

*Transit pass from Austria and Germany.

DONE...