Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    static int dateParseMonth(String date) {
        int ret = 0;
        if (date.charAt(5) == '1')
            ret += 10;
        char ch = date.charAt(6);
        if (ch >= '0' && ch <= '9')
            ret += (ch - '0');
        return (ret > 0) ? ret - 1 : 0;
    }
}