DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Posts
    1

    Looking for an Answer.

    Hello, i am currently an art student who is looking to use java for an installation project. I was hoping that someone could send me in the right direction for either source code or help. I do have knowledge in Java however the project i believe is above my skill.

    For the java i need be able to start the program use a timer to count how long someone has been there. Then once they are finished i need a print out of an array of things that happened since they were there. For example if a baby is born every 5 seconds, and the person used the program for 15 seconds, then i need to print out to them that 3 babies were born. Any help would be appreciated thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Sydney
    Posts
    49

    More info required

    You need to provide more requirements like


    Is it going to be a web based or a simple stand alone java program. ALeterntively Swing GUI based etc.


    -- you can use
    Code:
      long time1 = System.currentTimeMillis();
    
      long time2 = System.currentTimeMillis();
    
       long timeInTheSytem = t2 -t1
    Arul

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2006, 01:40 AM
  2. Replies: 6
    Last Post: 12-06-2005, 10:32 AM
  3. Re: Dynamic Server controls question -- Answer
    By Keith Summers in forum ASP.NET
    Replies: 0
    Last Post: 06-12-2003, 07:57 AM
  4. Re: I'm amazed(The answer)
    By Blob in forum .NET
    Replies: 11
    Last Post: 10-25-2002, 08:20 PM
  5. Exchange 2000 Unattended Answer File
    By Wei Ming Wong in forum Enterprise
    Replies: 0
    Last Post: 06-07-2001, 06:06 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links