online java code fixer

Solutions on MaxInterview for online java code fixer by the best coders in the world

showing results for - "online java code fixer"
Luca
21 Nov 2016
1123456789101112131415161718192021222324import java.util.Scanner;public class LeapYear{    public static void main(String[] args)    {        int lineCounter = 0;    for(int year=101; year <= 2100; year++)    {    if ((year % 4 == 0))    {        System.out.println(year + "");        lineCounter++;    {    if(lineCounter == 10)    }        System.out.println("");        lineCounter = 0;    }    }    }}X