date
From: bonux (Dhanesh81_at_intnet.mu)
Date: 07/21/04
- Next message: Roedy Green: "Re: Serialization"
- Previous message: Frances Del Rio: "newbie lost in strings......"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jul 2004 20:19:20 +0400
I have a problem with the date class, After having compile all my class , I
need to create a new object , That is a new instance of the customer class ,
with the customer data I've been provided, I use Blue J to do my works,
To create a new customer , I right click etc , and select the tab create new
customer,
the fields are provided to me are as follows
first name -- " john" // String
last name " doe" // String
Date of birth -- // thats the problem , Suppose , I want to enter the date
17/03/81 , how do I enter it , coz when I use "17/03/81" . I get the
message , Incompatible types - Java.lang.String found but expected
java.util.date .
its the same thing is I use 17/03/81
I get the msg Incompatible types, int found but expected java.util.date
if I use '17/03/81' ,
I get unclosed character literals
Can anyone help me on this please, How should enter the date for the Program
to accept it.
- Next message: Roedy Green: "Re: Serialization"
- Previous message: Frances Del Rio: "newbie lost in strings......"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|