0
how can i make it work?
import java.text.SimpleDateFormat ; import java.util.Date; public class Main{ public static void main(String[] args){ Date date = new Date(); SimpleDateFormat sd = new SimpleDateFormat ("yyyy"); String xd = sd.format (date); int year = 2020; if (xd > year){ System.out.println("You are from the future XD"); } } }
1 Answer
0
This date format will not work i think, but im not quite sure