Currently browsing category

Java, Page 35


How to use Enum in Switch?

Enums introduced in Java 5.0 (Read: New features in Java 5.0) allows switching to be done based on the enums values. It is …


Adding methods to an Enum

Enums introduced in Java 5.0 are just compiled java classes with some extra behavior. So you can basically do whatever you can …


Circular Linked List in Java

Had to implement a circular linked list recently. Here’s my take, suggestions are welcome. The list can be parameterized for any type …

Pin It on Pinterest