title: declaring different type variables inside for condition in Java
body: <p>I know this is stupid, but it is sort of hard to research properly due to it's simple nature, I suppose. </p>
  
  <pre><code>for (char letter = 'a', int num = 1; maxLine - num &gt; 0; letter++, num++) {
      System.out.print(letter);
  }
  </code></pre>
  
  <p>This is a standard way to define variables inside a for condition for C and C#, but it doesn't seem to work here. Why?</p>