Calendar variable is not recognized by android

0

I'm declaring this in my project and can not recognize the calendar variable "Can not resolve symbol 'Calendar'"

Calendar calendario= new Calendar.getInstance();
    
asked by anonymous 13.06.2016 / 17:52

1 answer

5

Use:

Calendar calendar = Calendar.getInstance(); 

Do not use new , after all getInstance is a static method.

    
13.06.2016 / 18:29