Lee Sang Hoon wrote:

> Hi ! everyon.......
>
> I'm  coding bulletin.
>
> but ERROR concured below !
>
> ----------------------------------------
> WriteCybbs.java:66: Class java.util.Date. getMonth not found in type
> declaration.
>                 +new Date.getMonth()+"-"
>                          ^
> Note: WriteCybbs.java uses a deprecated API.  Recompile with
> "-deprecation" for details.
>
> ------------------------------------------------------------------
>
> I'm using java version 1.1.7 via ....
>
> evidently, Date class contain getMonth() method in API .
>
> I hope helps
>
>                               http://cyclo.ml.org   by jisu.

Hi,
not java-linux related, i know, but here is the answer:
  new Date.getMonth()
tries to create a new instance of class getMonth in package Date.
What you want is a new Date object and call its getMonth() method:
  new Date().getMonth()
Note that you should no longer use deprecated features of the Java API,
refer to the Java API Documentation.
--
Martin Sorgatz
[EMAIL PROTECTED]

Reply via email to