Simple Javabean help needed!
Hey guys, first time posting - long time lurking!
Can anyone help me with the code for a simple Javabean?
It needs to obtain the current day, date and time by using the 'CALENDAR' object.
It needs to provide 'get' methods that return the current day name(text) date and time as strings.
The date needs to be retrurned to the bean in the format dd/mm/yyyy and the time hh:mm:ss (leading zeros required for single digit fields)
A main method contained would be useful to let me see it work before i include it anywhere.
I would be eternally grateful to anyone who can help with this matter!!
Thanx in advance.
Bean or EJB?
If it is just a java bean, it a normal object with a setter / getter for every one of it's members.
If you need JEB it involves more.
I think that you don't know how to code the logic itself. Check Calendar, GregorianCalendar, DateFormat and SimpleDateFormat.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center