Java: Enumeration types

Pubblicato il: 17 April 2013
sul canale di: Brandon Kearns
1,091
6

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:
http://docs.oracle.com/javase/tutoria...


In questa pagina del sito puoi guardare il video online Java: Enumeration types della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Brandon Kearns 17 April 2013, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,091 volte e gli è piaciuto 6 spettatori. Buona visione!