Timer, going downwords?

Does anyone have an idea how to make a timer go backwords e.g. 5,4,3,2,1,0
thanks for any help that maybe submit,
Go large,
Brian

You can build it from this.
* BTimer - a Timer that counts backwords
public class BTimer{
     private int count;
     public BTimer(int seconds){
          this.count=seconds;
      * start the timer
     public void start(){
          while(count>=0){
               System.out.println(count);
               try{
                    Thread.currentThread().sleep(1000); 
               catch(Exception e){}
               count--;
          System.out.println("Timer Over"); 
     public static void main(String a[]){
          new BTimer(6).start();       
}

Similar Messages

  • My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    You could try doing a hard shut down (holding the power button or yanking the battery) and then doing a safe boot by holding the shift key at startup:
    http://support.apple.com/kb/HT1455
    Also, not sure if this applies in your case, but I've had that happen when there's a USB drive inserted either in the computer or a connected external keyboard.  I did a hard shut down, removed the drive and it went through a normal start up. 

  • 24" iMac summer 2008. CPU fan runs at highest speed, some times goes to "sleep" mode. t' is about 35'- 42'C. Run hardware test: 4sns/1/40000000:tlop-130.000, next time 4sns/1/40000000:tlop-128.000 errors. Reinstalled all softwere. Nothing changed.

    24" iMac summer 2008. CPU fan runs at highest speed, some times goes to "sleep" mode. CPU t' is about 35'- 42'C. Run hardware test: 4sns/1/40000000:tlop-130.000, next time 4sns/1/40000000:tlop-128.000 errors. Tried SMC, NVRAM, PRAM. Reinstalled all softwere. Nothing changed.

    I suspect you have hardware problem with a fan sensor. Doing a software install will not help the machine needs to be taken in for service. If you run Apple Hardware Test in Extended Mode it should reveal the error code. If it does not then run AHT an additional 2-3 times to be sure in Extended Mode. Each pass will take about 30-60 minutes.

  • New HD and OS installed, but system gets slower as time goes by

    I have just put in a new 250GB HD, a new DVD-R drive, and installed a new OS(10.4.11). When the Powerbook first boots up, it works fine, but as time goes by(just a few minutes even), the system gets bogged down and eventually grinds to a halt. I've been told the HD is "leaking" to a file and the file is getting bigger and bigger to the point that the system can't run. I've watched the HD and I don't see any files getting bigger, but the HD "GB available" gets smaller and smaller(starting at 221GB and going down to below 200GB. Not sure what to do next. Please help.

    Use Activity Monitor to see what is hogging your CPU cycles and slowing the machine down. The difference between 200GB available and 221GB available is not causing the slowdown. The process that is consuming enough CPU cycles to write 21GB of data to the hard drive is your problem.

  • First time going to a site where I do not have access and clicking the back button I'm returned to the root site instead of the site I started from

    Greetings,
    I have SharePoint 2013 enterprise using ADFS for authentication.  I have an issue where the first time going to a site where you do not have access and clicking the back button you're returned to the root site instead of the site you
    started from.
    ie:
    1) at site http://www.sharepoint.com/sites/finance/home.aspx
    2) browse to
    http://www.sharepoint.com/sites/finance/private/home.aspx
    3) receive a message: you do not have access to this site  ((oops went to the wrong location - I'll hit the back button))
    4) click the browser back button
    5) get returned to http://www.sharepoint.com/pages/home.aspx
    This only happens the first time browsing to a site that I do not have rights to, after this I can browse to the same site and hit the browser back  button and return to the correct site, or any other site that I do not have access to.
    Any ideas as to why this happens?  Ideas of where to start looking?
    Thanks

    Hi Robert,
    From your description, when you receive access denied message and hit back button in browser, it redirects you to the root site but not previous site. However, this just happens at the first time.
    You may try to use some tool or check log which can tell us how does it handle the request when you hit the button. And compare the issue time and non-issue time.
    I'd suggest you use Netmon tool:
    http://blogs.msdn.com/b/carloshm/archive/2012/11/08/sharepoint-2013-network-monitor-parsers.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • My imac turns on with start up sound then nothing else just the timer going round

    my imac turns on with start up sound then nothing else just the timer going round

    Try restarting holding down the SHIFT key. That will do a directory check in Safe mode. It will take longer to start so continue to be patient.
    If it starts in Safe mode, then restart normally and see how that goes.

  • How can I set my bluetooth. the devices shows the timer going continually

    how can I set my bluetooth. the devices shows the timer going continually

    You can set the home page to about:newtab.
    *Tools > Options > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • I'm installing 10.7 and it will not finish.  The time goes into negative minutes.

    I'm installing 10.7 and it will not finish.  The time goes into negative minutes.  It is on a 2 year old 13.3 Macbook Pro. Had hopes of wiping the hard drive durring the install. Any ideas?

    Ok, so after like 4 days of going through all these different issues, I figured out that several programs weren't downloading, and it was an issue with my wireless connectivity messing up the digital signatures, so if you plug in your comp to the modem and delete your temp files, it should start to work!

  • Black box with timer going round keeps showing up!

    I keep getting black box with timer going round keeps showing up! I know how to use the memory clear app built in to my BB, I also have Boost memory, I know how to click the browser and then options tik the bottom 2 boxes plus all the rest, I've pulled battery, I also have Bejoose. This just started the last couple days. Its really frustrating to try to type something in an email or FB and have it freeze up for a minute or so. I just don't know what else I can do.
    THE BITTERNESS OF POOR QUALITY, LINGERS LONG AFTER THE CHEAPNESS OF PRICE, IS SOON FORGOTTEN.
    Solved!
    Go to Solution.

    goto options
    press BB button to get menu and Enable keyboard
    press and hold &%123 key for 3 sec
    type -??5* and device analyzer will be enabled
    if you mistype it at all, press esc key to home screen and try again.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • HT1923 I am trying to uninstall itunes and at the point where i try to remove apple mobile device support it never completes and the timer goes backwards?

    I am trying to uninstall itunes and at thepiont where I try to remove apple mobile device support it never completes the timer goes backwards?

    First try a repair install of Apple Mobile Device Support. If that goes through successfully, see if you can now uninstall Apple Mobile Device Support.
    If the Repair install doesn't help, try using the fixit from the following Microsoft document to remove Apple Mobile Device Support:
    Fix problems with programs that can't be installed or uninstalled

  • HT2513 ICal purges my data as time goes by

    Why does iCal purge my calendars as time goes by? I want to keep it as a record, that's as important as planning.
    Is there a setting I need to fiddle with?
    Tell me thisq isn't just the way it is. Apple needs to fix this.

    Close all of the apps in the recents tray, reboot the iPad and start all over again.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of every app in the recnets tray. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    See if that helps the performance of the iPad and helps to eliminate the lag.

  • My Macbook Pro started freezing all the time & going to sleep on its own for no reason

    I've been having trouble for a few weeks with my computer freezing way too often for seemingly no reason - I'm using it exactly the same way I always have with no problems, and even actively trying to have less applications open (which seems to have no effect). I can't always load simple webpages without it freezing and giving me the color wheel and it's just MUCH slower in general. It is seriously making it difficult to use my computer for work  or for fun...
    It has also started going to sleep on its own - the screen will just go black (or sometimes BLUE) and the keyboard lights turn off, and the only way to get it to wake back up is to close the computer, wait, open it again and click or press a key. It doesn't respond to any keys/clicks until it has been closed and reopened.
    It seems to overheat really easily lately as well - but it does not always overheat when it freezes.
    SMC reset did not seem to have an effect. Activity Monitor doesn't show anything crazy, everything is pretty much 0% except Firefox around 7-12% as I'm typing this. 246 GB available on my hard drive so that doesn't seem to be the problem either. Right after restarting my computer it seems better but the problems quickly resurface...
    I googled for help before posting this and someone had suggested running the command
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|find tok|n Cause: -' | tail | open -ef
    in Terminal, which they said "Normally the command will produce no output, and the window will be empty." But mine gave this:
    Tue Apr 15 21:04:24 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:04:42 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:04 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Tue Apr 15 21:35:20 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:56:46 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 10:57:03 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:17 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:35 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:11:52 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    Wed Apr 16 12:23:01 My-MacBook-Pro kernel[0] <Debug>: disk0s2: I/O error.
    I don't know what that means or if that is useful info to help solve my problem? I just want to know what I can do to make my mac go back to normal!
    I ran Etrecheck:
    Hardware Information:
        MacBook Pro (15-inch, Early 2011)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4 cores
        4 GB RAM
    Video Information:
        AMD Radeon HD 6490M - VRAM: 256 MB
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
        Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:24:42
    Disk Information:
        Hitachi HTS725050A9A362 disk0 : (465.76 GB)
            (null) (disk0s1) <not mounted>: 200 MB
            Macintosh HD (disk0s2) / [Startup]: 465.44 GB (229.26 GB free)
        MATSHITADVD-R   UJ-898 
    USB Information:
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
        Apple, Inc. MacBook Pro
    Kernel Extensions:
        com.digidesign.iokit.DigiDal    (8.0.3f1)
        com.paceap.kext.pacesupport.snowleopard    (5.7.2)
    Startup Items:
        DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
        M-AudioFastTrack: Path: /Library/StartupItems/M-AudioFastTrack
        PACESupport: Path: /Library/StartupItems/PACESupport
    Problem System Launch Daemons:
        [System]    org.samba.winbindd.plist 3rd-Party support link
    Launch Daemons:
        [System]    com.adobe.fpsaud.plist 3rd-Party support link
        [System]    com.google.keystone.daemon.plist 3rd-Party support link
        [System]    com.microsoft.office.licensing.helper.plist 3rd-Party support link
        [System]    org.eyebeam.SelfControl.plist 3rd-Party support link
        [System]    PACESupport.plist 3rd-Party support link
    Launch Agents:
        [System]    com.google.keystone.agent.plist 3rd-Party support link
        [System]    com.hp.help.tocgenerator.plist 3rd-Party support link
        [System]    com.m-audio.mobilepremkii.helper.plist 3rd-Party support link
    User Launch Agents:
        [not loaded]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [not loaded]    com.facebook.videochat.[redacted].plist 3rd-Party support link
        [not loaded]    com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
        Flux
        iTunesHelper
        RescueTime
    Internet Plug-ins:
        o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        nplastpass: Version: 2.5.5 3rd-Party support link
        Unity Web Player: Version: UnityPlayer version 3.5.2f2 - SDK 10.6 3rd-Party support link
        RealPlayer Plugin: Version: Unknown
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
        FlashPlayer-10.6: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        QuickTime Plugin: Version: 7.6.6
        Flash Player: Version: 13.0.0.201 - SDK 10.6 3rd-Party support link
        googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 3rd-Party support link
        AdobePDFViewer: Version: 10.1.1 3rd-Party support link
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Outdated! Update
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.2
    3rd Party Preference Panes:
        Flash Player  3rd-Party support link
        Growl  3rd-Party support link
        M-AudioFastTrack  3rd-Party support link
        M-Audio MobilePre  3rd-Party support link
    Old Applications:
        None
    Time Machine:
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU:
             5%    firefox
             3%    EtreCheck
             2%    WindowServer
             2%    hidd
             1%    mds
    Top Processes by Memory:
        545 MB    firefox
        74 MB    mds
        57 MB    WindowServer
        41 MB    Mail
        41 MB    Finder
    Virtual Memory Information:
        1.88 GB    Free RAM
        818 MB    Active RAM
        458 MB    Inactive RAM
        880 MB    Wired RAM
        190 MB    Page-ins
        0 B    Page-outs

    Eric - I dont understand how I'd use caffeinate.  I am not running any code or particular script.  My system goes to sleep if surfing the web, or running Word or Excel, etc. 
    Or..  Are you saying I should go through and type 'caffeinate X' for all of my applications?

  • My phone is dropping calls, doesn't ring all the time-goes directly to voice mail, do no recieve alert on when a text is recieved

    1-My phone does not ring all the time upon recieving an incoming call, it goes directly to voice mail.
    2- Not recieving alert tone upon recieving a text message.
    3- Dropping calls also

    We have the same problem widespread in our company with iPhone 4's and 5's:
    - Fails to establish the call, dials but nothing happens
    - Drops the call for no reason even though signal strength is good
    - Recevie text alerts to notify of voicemail when the handset has not rung nor does it show missed calls
    We migrated someone to a Samsung Galaxy S4 for a month and all these issues went away. Nothing to do with alert tones turned down or faulty silent switches.

  • PO delivery time going wrong very strange

    Hi gurus,
    Something really strange is going on, when I create manually a PO system should calculate the delivery time based on GR time + planned delivery time + values at vendor level or purchasing organization. I have neither of this values but the vendor delivery time so I want that system adds to todays date this number of days and take it as the planned delivery time, the problem is that system behavies really strange, here is an example of how is populating the dates:
    Planned delivery time 5 days working days in calendar is only from monday to friday, lets say I put the order on March 10 which is thursday I spect delivery date on thursday 17 but system is saying Tuesday 15
    I changed the pln del time to several values to see if there is any patron  and I noticed that if I put 2 days system gives monday 14 (cos sat and sun) but if I put 3 day, it also say monday 14th, and if I put 4 days it also gives me monday 14, only when I go for 5 days then system says tuesday 15th, and this is valid with all the numbers I put as delivery time, looks like system is trying to match the last digit of my planned delivery time with the last digits of the day like 14 with the 24th
    I know this sounds silly but it's what I am facing, any ideas or does someone have seen something like this before.?
    I have checked and this happens for all my materials
    PO Created at 10th march     
    Pl Del TimDays -     PO Del Date
    1-     11th
    2-     14th
    3-     14th
    4-     14th
    5-     15th
    6-     16th
    7-     17th
    8-     18th
    9-     21st
    10-     21st
    11-     21st
    Thanks and regards
    Edited by: Julio on Mar 11, 2011 7:19 AM

    Saturday and sunday are holiday for you, but not for the transporter.
    if goods have been despatched on   friday, they will move on sat and sun as well and reach on time i.e after 5 days.  i.e. 15th.
    the basic concept being that goods(transporter)  will travel/move  on your holidays as well.
    FYI
    Delivery date calculation takes into consideration :
    1) Purchasing processing time in the Plant parameters in the customization and is calculated based on the Factory calendar days.
    2) Planned delivery time maintained in material master  and is calculated based on Normal calendar days
    3)GR Processing time Maintained in Material master record, calculated based on Factory calender.

  • "Installation Failed" the first time going in an application

    I have an installer which installs a necessary version of the JRE, then calls installSucceeded(false) at the end. Everything seems to work as far as installing the JRE; however, I get an "Installation Failed" message after the JRE installs. The next time I launch my application it works just fine. Any idea of whats going on here? Any help would be appreciated.

    To help some, it appears that the installer is as two separator instances at the same time.

Maybe you are looking for