Java: Enumeration types

preview_player
Показать описание
Tutorial explains the creation of Enumeration types to ensure Type-Safe initialization of values. Also covers the use of a Scanner to scan through text in an external text file in the file-system. Differentiates the forward and backslash formats for locating a File in Windows versus Linux.

Finally, I show an example from the Oracle Java tutorial website for enumeration (more advanced). This servers as a stepping stone to begin our creation and use of our own Class files that we will begin creating in the next tutorials. In order to run this example we have to specify arguments (String[] args) - so I show how to specify those arguments both inside of Eclipse as well as running from the command-line.

Link to Oracle Program Code:
Рекомендации по теме
Комментарии
Автор

It helps me a lot.. thanks

and yeah it'd be nice if you use little bigger font. :)

rajeevranjan