I'm spending some time with Java again after a long break on the .NET side. I came across this code:
Date date = new Date(Date.UTC(y - 1900, m - 1, d, h, M, s));
Unfortunately Date.UTC
has been deprecated for a while. So, what is an equivalent replacement that won't cause compiler warnings?