public class Rodne_cislo { public int RC(String RC) { RC = RC.substring(0,2); int vek = 2011-(1900+Integer.parseInt(RC)); return vek; } }