@@ -0,0 +1,2369 @@
+/**%0A * Implementing a FizzBuzz application:%0A * %3Cp%3E%0A * 1. implement %7B@link FizzBuzz#fizzBuzz()%7D%0A * -  This is the %22raw%22 commonly implemented version of FizzBuzz%0A * %3C/p%3E%0A * %3Cp%3E%0A * 2. implement %7B@link FizzBuzz#fizzBuzz(String, String, int)%7D%0A * - You can comment out or delete the first %7B@link FizzBuzz#fizzBuzz()%7D call for simplicity.%0A * - Read values from the %7B@code args%7D array passed to FizzBuzz%7B@link #main(String%5B%5D)%7D.%0A * - Convert the values if needed (string to int)%0A * %3C/p%3E%0A * %3Cp%3E%0A * 3. call %7B@link FizzBuzz#fizzBuzz()%7D if no arguments are passed, otherwise call%0A * %7B@link FizzBuzz#fizzBuzz(String, String, int)%7D%0A * %3C/p%3E%0A * %3Cp%3E%0A * 4. what if not enough arguments are passed? What has to be done to avoid breaking the application if%0A * the arguments are basically optional?%0A * %3C/p%3E%0A */%0Apublic class FizzBuzz %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        // fizzBuzz() or fizzBuzz(string, string, int)?%0A%0A        // the deault method%0A        fizzBuzz();%0A%0A        // fizzBuzz(fizz, buzz, length)%0A    %7D%0A%0A    /**%0A     * Exercise 1 rules:%0A     * 1. loop of your choice from 1 to 100%0A     * 2. when the number is dividable by  3 print Fizz%0A     * 3.%C2%A0when the number is dividable by  5 print Buzz%0A     * 4.%C2%A0when the number is dividable by 15 print FizzBuzz%0A     */%0A    private static void fizzBuzz() %7B%0A    %7D%0A%0A    /**%0A     * Exercise 1 rules:%0A     * 1. pass the arguments%0A     * 2. loop of your choice from 1 to length%0A     * 3. when the number is dividable by  3 print the value of fizz%0A     * 4.%C2%A0when the number is dividable by  5 print the value of buzz%0A     * 5.%C2%A0when the number is dividable by 15 print the value if fizz and buzz combined%0A     */%0A    private static void fizzBuzz(String fizz, String buzz, int length) %7B%0A    %7D%0A%0A    /**%0A     * Converts the given string into an integer.%0A     *%0A     * @param anyString    An arbitrary string.%0A     * @param defaultValue The default value which is returned if the conversion failed.%0A     * @return The int value of the string or the default value given if an error occurred.%0A     */%0A    private static int parseStringToInt(String anyString, int defaultValue) %7B%0A        int value;%0A        try %7B%0A            value = Integer.valueOf(anyString);%0A        %7D catch (final NumberFormatException e) %7B%0A            System.err.println(e.getMessage());%0A            value = defaultValue;%0A        %7D%0A        return value;%0A    %7D%0A%7D%0A

Create FizzBuzz.java