Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners java code digital clock
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


jandi
java code digital clock
3 Answer(s)      4 years and 2 months ago
Posted in : Java Beginners


hello can you share or give me a code that will display digital time.hh:mm:ss
it shows the seconds is running.
thats all
thank u

Advertisement
View Answers

July 28, 2010 at 11:57 AM


Hi Friend,

Please visit the following link:

http://www.roseindia.net/java/example/java/applet/ClockApplet.shtml

Thanks


July 28, 2010 at 12:53 PM


ohhh i forget its a java program
and it is using looping
can you give me a code for that
thank you


November 28, 2011 at 8:52 AM


class clock
{
    public static void main(String args[])
    {
        int sec = 0;
        int min = 0;
        int hour = 0;
        {
            for(hour=1;hour<3;hour++)
            {
                for(min=0;min<60;min++)
                {
                    for(sec=0;sec<60;sec++)
                    {
                        System.out.println(hour+":"+ min+":"+sec);
                        try{Thread.sleep(1000);}
                        catch(Exception e){}
                        for(int i=0;i<100;i++)
                        {
                            System.out.println("");
                        }
                    }

                }
            }

        }
    }
}


Related Tutorials/Questions & Answers:
java code digital clock - Java Beginners
java code digital clock  hello can you share or give me a code that will display digital time.hh:mm:ss it shows the seconds is running. thats all...://www.roseindia.net/java/example/java/applet/ClockApplet.shtml Thanks  
Clock Applet in Java
Java - Clock Applet in Java     ... by the java applet to illustrate how to use the clock in an applet. This program shows... online this example. Download the Java Code
Advertisements
digital diary
digital diary  please post the code for a simple digital diary... with contacts storing facility, passwords , notes, alarm clock and calender
digital diary
digital diary  please post the code for a simple digital diary... with contacts storing facility, passwords , notes, alarm clock and calender
digital diary
digital diary  please post the code for a simple digital diary... with contacts storing facility, passwords , notes, alarm clock and calender
how can create clock baisc in java
how can create clock baisc in java   think u for help me ..  ...()); content.add(timeField); setTitle("Clock"); setSize(100,70...) { JFrame clock = new DisplayClock(); clock.setVisible(true
how can create clock baisc in java
how can create clock baisc in java   think u for help me ..  ...()); content.add(timeField); setTitle("Clock"); setSize(100,70...) { JFrame clock = new DisplayClock(); clock.setVisible(true
how can create clock baisc in java
how can create clock baisc in java   think u for help me ..  ...()); content.add(timeField); setTitle("Clock"); setSize(100,70...) { JFrame clock = new DisplayClock(); clock.setVisible(true
Finding shapes in digital photos - java
Finding shapes in digital photos - java  Hello, I need some hints... in digital photos (JPEG file). Here's what I have to do: A digital photo... class in Java, but any other ideas are more than welcomed. Thank you very much
Analog clock
Analog clock  how to develope analog clock using java
analog to digital
analog to digital  how to convert analog to digital in java ?   Hi, What is to be converted? Is it sound or video? Thanks
how to build a colorful clock in JSP without using Flash.
how to build a colorful clock in JSP without using Flash.  I have to make a colorful clock using java programming or some API in a JSP page. Please send me a code for it as soon as possible
JavaScript Clock Timer
time is completed. Here is the code <html> <h2>Clock... JavaScript Clock Timer...; In this section, we are going to show you a clock timer using JavaScript
convert voice to digital
convert voice to digital  convert voice to digital How to convert human voice to the digital signal(binary) that can stored in notepad. Then, this notepad can be used
convert voice to digital
convert voice to digital  How to convert human voice to the digital signal(binary) that can stored in notepad. Then, this notepad can be used... Propagation Neural Network. this is java coding
digital communication system
digital communication system  A digital communication system capable of interconnecting, a large number of computers, terminals and other peripheral devices within a limited geographical area is called- a) LAN, B) WAN, C
Display PHP clock with user input date and time
Display PHP clock with user input date and time  The following PHP code displays a clock with current date and time. I want the clock to receive user input date and time. How can this be done? <?php date<em>
What is Digital Relationship?
and expanse of the term digital relationship. But as we are immersed already in the digital age and everything right from the entertainment to information sharing to health care tends to become increasingly digital we cannot think otherwise
How to display mysql database records as per clock timing?
How to display mysql database records as per clock timing?  I want to display database records as per clock timing
JAVA code For
JAVA code For   JAVA code For "Traffic signals Identification for vehicles
java code
java code  write a java code to convert hindi to english using arrays
JAVA CODE
JAVA CODE  JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE
java code
java code  what is the code to turn off my pc through java program
java code
java code  hi any one please tell me the java code to access any link i mean which method of which class is used to open any link in java program
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
java code
java code  write a java code for finding a string in partiular position in a delimited text file and replace the word with the values given by user and write the file in new location
java code
java code  need java code for chart or graph which compare the performance of aprior algorithm and coherent rule algorithm.plz any one help me out
java code
java code  I need the java code that would output the following: HARDWARE ITEMS CODE DESCRIPTION UNIT PRICE K16 Wood screws,brass,20mm $7.75 D24 Wood glue,clear,1 liter $5.50 M93
Java code
Java code   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes
What is Digital Relationship Marketing?
Digital relationship marketing is increasingly becoming the focus of marketing... in the technological interface or digitized way of handling things in everyday life digital... and campaigns in the new era and thus digital relationship marketing became
Advertisements
 

 

 

DMCA.com