title: I have an error with my return value, it says it isn't initialized but I have it initialized in a if then statement right above it
body: <p>I have an error with my return value, it says it isn't initialized but I have it initialized in an if then statement right above it.</p>
  
  <pre><code>public static String leapYear(int n) {
      int j;
      int r;
      int f;
      j = n % 4;
      String check;
      if (j == 0) {
          r = n % 100;
          if (r == 0) {
              f = n % 400;
              if (f == 0) {
                  check = ("The year is a leap year.");
              }
          }
      } else {
          check = ("The year is not a leap year.");
      }
      return check;
  }
  </code></pre>