Compare the following Programs?
public class LoopExample1
{
public static void main(String[] args)
{
for (char i = 0, j = 1; i < 5 && j < 6; i++)
{
System.out.print((int) i + " " + (int) j + ", ");
j++;
}
}
}
public class LoopExample2
{
public static void main(String[] args)
{
for (int i = 0, j = 1; i < 5 && j < 6; i++)
{
System.out.print(i + " " + j + ", ");
j++;
}
}
}