Don't use String for method options, use an enum!
Posted by Simon Larsén in Programming
In this article, we are going to have a look at a method that accepts an option. That is to say, it accepts an argument that somehow decides how it operates. If you use a lot of libraries in your day-to-day programming, you're bound to come across methods that accept …