- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
public static final int CURENT_MILLENIUM = 2000; //must be changed in year 3000
public int year;
public void setYear(String year) {
if (Integer.valueOf(year) < 100) {
year = String.valueOf(CURENT_MILLENIUM + Integer.valueOf(year)).toString();
}
this.year = Integer.valueOf(year);
}
ASMOZDOT 09.07.2018 11:56 # +1
ASMOZDOT 09.07.2018 12:00 # 0
Ray_Mints 09.07.2018 15:40 # 0
Sergdev 04.09.2018 23:12 # 0