java code digital clock

Ads

 
 

Share on Google+Share on Google+

jandi
java code digital clock
3 Answer(s)      7 years 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
Ads
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("");
                        }
                    }

                }
            }

        }
    }
}

Ads









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
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
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
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
Maven Dependency mock-clock >> 1.0
You should include the dependency code given in this page to add Maven Dependency of com.statemachinesystems >> mock-clock version1.0 in your project
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
JAVA code For
JAVA code For   JAVA code For "Traffic signals Identification for vehicles
Version of com.statemachinesystems>mock-clock dependency
List of Version of com.statemachinesystems>mock-clock dependency
java code
java code  what is the code to turn off my pc through java program
JAVA CODE
JAVA CODE  JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE
java code
java code  write a java code to convert hindi to english using arrays
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
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
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  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  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  develop a banking system in java
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
java code
java code  how to extract html tags using java