You will get a NumberFormatException if the String doesn't contain a properly formatted integer value. See the previous Caution. Character Character is a simple wrapper around a char. It has several helpful static methods, which can be used to test various conditions about a char. Enumerations Java has arrays for storing groups of like-typed data, which are very useful for simple data access mode ls.
Enumerations deal with their own memory allocation and growth reallocation.
They have method interfaces for iteration and traversal. They can be indexed by something more complex and useful than simple integers. Enumeration Interface Enumeration is a simple interface that allows you to enumerate over all of the elements in any collection of objects. It specifies two methods. The first, a boolean method called hasMoreElements, returns true while there are still more elements to extract, and false when all of the elements in a collection have be enumerated.