Simple Javabean help needed!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Simple Javabean help needed!

  1. #1
    Join Date
    Apr 2003
    Posts
    1

    Smile 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.

  2. #2
    Join Date
    Mar 2003
    Posts
    86

    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.

    Sharbov.

  3. #3
    Join Date
    Mar 2003
    Posts
    834
    I think that you don't know how to code the logic itself. Check Calendar, GregorianCalendar, DateFormat and SimpleDateFormat.
    ArchAngel.
    O:-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center