• Category Archives Tutorials
  • Tutorials for anything.

  • General » Tutorials
  • [Java] Enumerations: My New Friend!

    Most programmers have little libraries of code that they use often that they have written. I have some myself for Java. One of these classes that I have written is called DirectoryAssembler. To put it simply, I pass it an argument stating where I want data stored and the name of a folder to append to that directory. I get back a string that is the absolute path to where that folder can exist. DirectoryAssembler takes care of finding out what the System OS is, figuring out where the “program data” folder is; That kind of thing. Of course I’m a beginning programmer so most of my code is bloated and horrible. Well today’s article is on my discovery of Enumerations and how they changed my code significantly; hopefully for the better.