Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Calendar;

public class Main {
    private static String AddYear(String paramString1, String paramString2) {
        int i = paramString2.indexOf("yyyy");
        return paramString1.substring(0, i).concat(String.valueOf(Calendar.getInstance().get(1)))
                .concat(paramString1.substring(i));
    }
}