Java tutorial
//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)); } }