I just want to output current and I wrote
import java.util.*;
at beginning, and
System.out.println(new Date());
in the main part.
But what I got was something like this:
Date@124bbbf
When I change the import to
import java.util.Date;
the code works perfectly, why?
====================================
The problem was, OK, my source file was "Date.java", that's the cause.
Well, it is all my fault, I confused everybody around ;P
And thanks to everyone below. It's really NICE OF YOU ;)