Create a Java program that simulates Digital Clock.?
-
Create a Java program that simulates a live digital clock (NOT analog and NOT a combination). You may refer to chapters 13 – 15 in your book for the analog clock the author has created and use that code for reference. Your clock must be digital and be live (ticking). The clock must work stand-alone as well as in a web pagee (refer to chapter 17 for applets). You must also create a simple web page that will host the clock. The clock will display the time in this format: 10:32:44 PM presuming it is 10:32:44 PM. If the time has a single digit in the minutes or the seconds positions, they need to be prefixed with a 0 such as 12:04:08 AM. If it is the hour that is single, it should be left as a single digit such as 2:09:45 PM. I must be able to open theweb pagee with a browser and see the clock working. I also must be able to run the class file and see the clock working stand-alone using the java Clock command. Please help me!!!
-
Answer:
to get the current time i think you do String s=String.Format("%tT",Calendar.getInstan… System.out.println(s);
Will Cruz at Yahoo! Answers Visit the source
Other answers
This is a homework assignment. You post your code and questions/problems, we help you figure it out then.
Related Q & A:
- how to Create a Java Package from MATLAB Code?Best solution by Stack Overflow
- how to create a new syntax in java?Best solution by Stack Overflow
- How to create a java applet?Best solution by Stack Overflow
- How do I create a digital signature and how do I use it?Best solution by support.office.com
- How to create this Java program?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.