deprecated getMonth() {RESOLVED}
it's been a long time i didn't log in here, this forum changes a lot :)
I have a very simple problem, I'm sort of "outdated",:( need help here.
Code:
import java.util.*;
public class MemberManagement{
:
:
// How do I return the month since getMonth() can't be used anymore and I don't understand the API, can someone correct this method for me? Besides "import java.util.*;", anything thing else needed? A full code for this part would be helpful :)
public int getMonth(){
Date a=new Date();
return a.getMonth();
}
:
:
}