Is it possible to declare two variables of different types in initialization of for statement in Java?
for (char letter = 'a', int num = 1; maxLine - num > 0; letter++, num++) {
System.out.print(letter);
}
Coming from C/C#, I tried to do it as above, but the compiler says it expects a semicolon identifier after the letter variable declaration.
int i =0 ,char c ='a';?, don't think it works in c++ or c#