• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date class  RSS feed

 
Spandan Pandey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output:-
TestFormats.java:4: cannot find symbol
symbol: class Date
location: class TestFormats
String s = String.format("%tr", new Date( ) );

1 error


Please Help!!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you imported the Date class?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!