Every programming language has its own conventions for writing “pretty” code. By conventions we mean certain principles to follow while writing your code, so that it is easy to read by other programmers.
For example, when programming Java, there are the following conventions:
public static final
fields) are always written in upper snake case (UPPER_CASE_LETTERS with a _
between the words).In this assignment, we are going to create our own StringUtils
class that contains methods to convert Strings to the
different case styles used in programming. These case styles must all be implemented, for each style we have added an
example:
You can find more information about the different case styles at the relevant links.
L33t is obviously not a case style used in programming languages, but it is an internet spelling that is used used by people who are quite familiar with IT. With L33t sp34k, you can suffice by just writing substitutions for all the vowels.
Note that within classdiagrams, any underlined methods are static
methods.