• Post Reply Bookmark Topic Watch Topic
  • New Topic

Have a problem with Calendar class  RSS feed

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This gives me a compilation error: Can't find the symbol getInstance(). Are there any restriction in using this static method? there are some overloaded methods in the API. Thanks in Advanced!
 
Pat Farrell
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't use "new" with any getInstance() functions.


Calendar c = Calendar.getInstance();
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OoooHhhhhh, Thanks a lot..... mmmm, It's a great mistake........
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!