Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class Main {
  
  public static void main(String[] args) {
 
        List<String> inputList = readInputList();
 
        byte maxDayFlag = 0;
 
        int[] arr = readYearAndMonth(inputList.get(0));
 
        Calendar cal = convertCalender(arr);
        if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY])
            maxDayFlag = 1;
 
        System.out.println(maxDayFlag);
  }
 
    private List<String> readInputList() throws IOException {
 
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
 
            List<String> inputList = new ArrayList<>();
 
            for (int i = 0; i < MAX_INPUT_LIMIT_COUNT; i++) {
                inputList.add(br.readLine());
            }
 
            return inputList;
    }
 
    private int[] readYearAndMonth(String inputStr) {
        int[] yearAndMonthArr = new int[2];
        String[] strArr = inputStr.split("\\s");
 
        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);
 
        return yearAndMonthArr;
    }
 
    private Calendar convertCalender(int[] yearAndMonthArr) {
        return new Calendar.Builder()
                .setLenient(true)
                .set(Calendar.YEAR, YEAR)
                .set(Calendar.MONTH, yearAndMonthArr[ARR_INDEX_MONTH] - 1)
                .set(Calendar.DAY_OF_MONTH, yearAndMonthArr[ARR_INDEX_DAY])
                .build();
    }
 
}

Compiler output:
Main.java:12: error: non-static method readInputList() cannot be referenced from a static context
        List<String> inputList = readInputList();
                                 ^
Main.java:16: error: non-static method readYearAndMonth(String) cannot be referenced from a static context
        int[] arr = readYearAndMonth(inputList.get(0));
                    ^
Main.java:18: error: non-static method convertCalender(int[]) cannot be referenced from a static context
        Calendar cal = convertCalender(arr);
                       ^
Main.java:19: error: cannot find symbol
        if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY])
                                                               ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:32: error: cannot find symbol
            for (int i = 0; i < MAX_INPUT_LIMIT_COUNT; i++) {
                                ^
  symbol:   variable MAX_INPUT_LIMIT_COUNT
  location: class Main
Main.java:43: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
                        ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:43: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
                                                                  ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:44: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);
                        ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:44: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);
                                                                ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:54: error: cannot find symbol
                .set(Calendar.DAY_OF_MONTH, yearAndMonthArr[ARR_INDEX_DAY])
                                                            ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:53: error: cannot find symbol
                .set(Calendar.MONTH, yearAndMonthArr[ARR_INDEX_MONTH] - 1)
                                                     ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:52: error: cannot find symbol
                .set(Calendar.YEAR, YEAR)
                                    ^
  symbol:   variable YEAR
  location: class Main
12 errors