«
^
»
9.8 Differences from C#
There are two main differences from C#:
In C#, you can use the relational operators (
<
,
<=
,
>
and
>=
):
tDay1<=tDay2
This is not possible in Java 5. Instead you could write:
tDay1.compareTo(tDay2)<=0
In C#, it is not possible to declare constructors, fields and methods in an enum declaration.