A program that reads in secounds, and prints out hours minutes

Hi, im new to Java and just testing something out. (Sorry for my bad english)
How do i make a java application where the user input secounds, and the program "transforms" these secounds into hours, minutes and secounds.
Like this:
11873
--> 3 hours, 17 minutes, 53 secounds.
Anyone got a suggestion with some simple code?(so i can understand it )
I cant find a way to do it.

CYKO wrote:
You're such a dickhead, you know that?
Rookies don't get very good met here, im off.
Really hope you sort ou your irl-issues, theres obviously some.Interesting, I've been called that by people that have had a far better idea of what they were talking about than yourself--you see I come from a school of education where the professor told us: After you've thought about it for days, banged your head against the wall and not had any valid results after hours of work, then come to me and I'll give you enough to get started. 54% of the class washed out before the very first test. (Oh, by the way, his great revelation on how to get started was: keep a pencil and paper by you at all times--you may wake up and know the answer: write it down then and there because you will not remember later.)
I stood in the freshman class at the university I attended for undergrad work as president of our professional organization on campus and told them: "Look to your left. Now look to your right. On an average, if you make it through your chosen field of studies, everyone else in your row will not." It was a sobering fact for them, but they found out later just how true my words were. There were 12 rows--the university graduated 12 of them. That figure held true for my class too.
So when a student comes in and trys to lay the guilt out on us... just know that we've been through it--where you are--and we are the ones that survived and excelled.
Man-up and do what needs to be done to compete in school, it doesn't get any easier in the workplace. I'll not go through the details of trudging to class in the snow, not sleeping for 3 days straight to get assignments done, weeks at a time where I could count the number of hours of sleep on my fingers and not repeat any, working 35 hours a week and carrying a full college load, hit the books when all my friends were out partying... just to name a few things. So excuse me (us) if we turn a bit of a blind eye to your "emergency" we had them, we handled them, we made it because we paid the price. If you're not... well, you're not: just don't expect a sympathetic eye from those that took the pounding day after day and made it.

Similar Messages

  • Creating basic forms that can be scored and print out as PDF

    I'm looking to hire someone to help me with a project.
    Very simple need, but I want it to be clean and work perfectly. Basically I need the user to be able to click check boxs or write information into a form. I want the form to score the check boxes and give a result. The write-ins will just stay. I want that form to them be given to the user as a PFD.
    If you know what you're doing and want a job, I will hire you for this. I have several of these items to do. I'm happy to pay you whatever a reasonable fee would be.
    If you're interesting, please contact me.
    Thank you,
    Stephen

    Kind of sever... hmmm... I don't know. I use godaddy.com
    Does it support PHP and MySql.... hmm... I host through godaddy. I think so
    The forms are highly variable. Let's start with this one: clinical criteria for major depressive disorder (as below). I would like the user to be able to click yes/no and for it to keep track.
    Criteria for Major Depressive Episode
    A. Five (or more) of the following symptoms have been present during the same 2-week period and represent a
    change from previous functioning; at least one of the symptoms is either 1) depressed mood or 2) loss of interest
    or pleasure (do not include symptoms that are clearly attributable to another medical condition
    1. Depressed mood most of the day, nearly every day as indicated by either subjective report (eg, feels sad, empty,
    hopeless) or observation made by others (eg, appears tearful)
    2. Markedly diminished interest or pleasure in all, or almost all, activities most of the day, nearly every day (as
    indicated by either subjective account or observation)
    3. Significant weight loss when not dieting or weight gain (eg, a change of more than 5% body weight in a month), or
    decrease or increase in appetite nearly every day
    4. Insomnia or hypersomnia nearly every day
    5. Psychomotor agitation or retardation nearly every day (observable by others, not merely subjective feelings of
    restlessness or being slowed down)
    6. Fatigue or loss of energy nearly every day
    7. Feelings of worthlessness or excessive or inappropriate guilt (which may be delusional) nearly every day (not
    merely self-reproach or guilt about being sick)
    8. Diminished ability to think or concentrate, or indecisiveness, nearly every day (either by subjective account or as
    observed by others)
    9. Recurrent thoughts of death (not just fear of dying), recurrent suicidal ideation without a specific plan, or a suicide
    attempt or a specific plan for committing suicide
    B. The symptoms cause clinically significant distress or impairment in social, occupational, or other important areas
    of functioning
    C. The episode is not attributable to the physiological effects of a substance or to another medical condition
    D. The occurrence of the major depressive episode is not better explained by schizoaffective disorder,
    schizophrenia, schizophreniform disorder, delusional disorder, or other specified and unspecified schizophrenia
    spectrum and other psychotic disorders.
    E. There has never been a manic episode or a hypomanic episode.

  • Program to read html file and to open the links in that html file

    program to read html file and to open the links in that html file..
    ex:- to read automatically all next links in the html file and save it hard disk

    Start here;
    http://java.sun.com/products/jfc/tsc/articles/bookmarks/
    It gives you all of the information you need to parse the HTML file using the HTMLEditorKit that is a part of the Java SDK.
    Once you get the links from the file, then you can think about connecting to each.

  • How do I convert an e-mail into a Word file that can be edited and printed?

    I received an e-mail from a relative that I want to convert into a Word file that can be edited and printed?

    Go to appleid.apple.com to manage the ID, sign in.  If you are using two-step verification on the ID, select the Name, ID and Email Addresses section, then change the birth date on the bottom right.  If you are using security questions instead of two-step verification, select the Password and Security Question and answer the two security question to access and change the birth date.  At the present time you may not be able to enter the correct birth date, but you should be able to change it to 1/1/2001, which will have child ID status.

  • How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the

    How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the e-mail.  What have I done differently?

    Thanks again for the detailed instructions Srini!
    And I really hate to be a pest . . . but . . .
    Using your example and not modifying it, I get the e-mail form filled out correctly and the pdf attached, however, I'm not prompted to sign it.
    Any more clues?

  • HT4623 I want to use a program that needs Adobe Flash and I'M then told this device, iPad, can't use Adobe.  What does it use instead?

    I want to use a program that needs Adobe Flash and I'm then told Adobe Flash cannot be used with my iPad.
    What do,I use instead go Adobe Flash?

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • Firefox offered me a program that killed unwanted cookies and showed me a pop-up as they were deleted and it's gone. How can I get it back? Thanks

    Firefox offered me a program that killed unwanted cookies and showed me a pop-up as they were deleted and it's gone. How can I get it back? Thanks

    Thanks, but that didn't do it.
    When it was working, there was a small Firefox icon in the lower right corner...it showed a pop-up when someone tried to load a cookie, described it and deleted it. Yahoo was trying to load cookies every 15 minutes or so, this feature alerted me and described the action as 'self-destructed'. Would like to get it back....
    Thanks, Tedzo

  • Have some issues downloading itunes. getting a pop up that reads MSVCR80.dlll and another one pops up and reads something about a moblie device

    have some issues downloading itunes. getting a pop up that reads MSVCR80.dlll and another one pops up and reads something about a moblie device

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • HT5557 I have mistakenly started a audio that read my text and books.  What is that and how do find it?

    I have mistakenly started a audio that read my text and books.  What is that and how do find it?

    If there is a box around what it's reading that's Voiceover and you can ask Siri to turn it off.
    if you run two fingers down the page and it reads thats speak screen. Go to settings> general> accessibility> speech> speak screen> off.

  • Add a actionlistener to JTextArea and print out string when  the user input

    Hello:
    I got a problem to add a actionlistener to JTextArea and print out string which from the user input a sentence and after the user press the "enter".
    Could anyone help me please?
    Thanks
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.JScrollBar;
    public class PanelDemo extends JFrame {
       private static JTextArea tAreaUp, tAreaDown;
       private BorderLayout layout;
       private static String strings;
       public PanelDemo()
          super( " test " );
          Container container = getContentPane();
          layout = new BorderLayout();
          container.setLayout( layout );
          tAreaUp = new JTextArea(2,1);
          tAreaUp.setLineWrap(true);
          tAreaUp.setWrapStyleWord(true);
          tAreaUp.setEditable(false);
          tAreaUp.append("I am testing ");
          tAreaUp.append("I am testing");
           JScrollPane scrollPane = new JScrollPane(tAreaUp);
           scrollPane.setVerticalScrollBarPolicy(
                            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
           scrollPane.setPreferredSize(new Dimension(250, 250));
          tAreaDown =new JTextArea(2,1);
          tAreaDown.setLineWrap(true);
          tAreaDown.setWrapStyleWord(true);
          tAreaDown.addActionListener(new TextAreaHandler());
          JScrollPane scrollPane2 = new JScrollPane(tAreaDown);
          scrollPane2.setVerticalScrollBarPolicy(
                            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          container.add( scrollPane, layout.CENTER );
          container.add( scrollPane2, layout.SOUTH );
          setSize( 300, 300 );
          setVisible( true );
         //private inner class for event handling
         private class TextAreaHandler implements ActionListener{
              //process textArea events
            public void actionPerformed(ActionEvent e){
               strings=e.getActionCommand();
                System.out.println(strings);
       public static void main( String args[] )
          PanelDemo application = new PanelDemo();
          application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    }

    Thanks for your help, but I still got a question for you.
    Do you think the way I register the even handler to the TextArea is correct?
    Because the compailer complains about that which like
    "D:\101\fig13_27\PanelDemo.java:43: cannot resolve symbol
    symbol  : method addActionListener (PanelDemo.TextAreaHandler)
    location: class javax.swing.JTextArea
          tAreaDown.addActionListener(new TextAreaHandler());

  • Can I use Acrobat 11to download pdf that only allows me to read, enter data, and print?

    I need to complete gov. forms available online as pdf.  I can review, enter data and print, but I cannot save to my computer or anywhere else.  I need to be able to save so I can return to the form and enter information as I access it.  Can this be done if I purchase Acrobat 11 and, if so, can I get the Standard edition?  I currently only have Reader.

    Yes, if you upgrade to at least Acrobat Standard you will be able to save. Since you can't save with Reader (assuming 11), the forms are probably XFA forms (created with LiveCycle Designer), which must be Reader-enabled in order to be saved with Reader. Reader 11 can save non-enabled AcroForms (forms created with Acrobat), but not non-enabled XFA forms. If you have a Reader version prior to 11, try using Reader 11 to see if it will save.
    If you can provide a link to one of the forms, I can tell you for sure what the minimum requirement for saving is.

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

  • I downloaded a program that was an adware and now can't get rid of it.  How do I do it?

    I downloaded a program that was an adware with out understanding what it really was and now can't get rid of it.  How do I get rid of it?

    Click here and follow the instructions, or if they don't cover that type of adware, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (120472)

  • I need help on how to write program that read integers

    I am a beginner to java and need you help please.
    How do I write a program that will read an unspecified number of integers (between 5 to 8 values) and :
    (a) determine how many positive and negative value have been read.
    (b) find the average of the positive integers as well as the average for the negative integers.
    (c) find the total of all values. (both positive and negative)
    (d) count the number of zero input by the user and display the count.
    (e) your program should allow the users to repeat the task as many times as they want.
    Generate a table like this: (assuming that the user enters: 2,0,-11,21,0,-3,89,6)
    Positive Ave(+) Negative Average(-) Zero(0) **************************************************************
    2 39     -3      -7     2
    21     -11
    89               
    6     

    I'm sure thats ur programming assignment.... Read any intro to java book .... or search on the net and you will be able to find answers

  • I have a video downloaded from my camera in iPhoto and I wish to freeze frame one shot and make it a photo that I can save and print.  Any way to do this on my Mac?

    I have a video downloaded from my camera in iPhoto and I wish to freeze a frame of the photo and make it a picture to be saved and printed.  Can I do this on my Mac?

    Open the video in QuickTime Player.
    Scrub to the frame.
    Edit/Copy.
    Open Preview.
    File/New From Clipboard.
    File/Save...

Maybe you are looking for

  • How do i get more storage space in crative cloud?

    I have 20gb of space in my creative cloud account and it is nearly full, can i purchase more space?

  • Add a single role to different composite roles in one step

    Hello everybody, I am working on SAP authorizations, and we often have the situation that a new Tcode is developed and a new role for this Tcode needs to be created. Than this new role needs to be added to many different composite roles (sometimes mo

  • CS4 - Adobe Media Encoder - Encore - H.264 Blu-ray

    As many folks are aware, Encore's transcoding can sometimes be less than optimal. I played with the AME settings and with the help of other folks on these and other forums finally determined all the right settings so that Encore would treat my DVD qu

  • Cant Publish fla file in 2 different versions of Flash

    This is a strange one.... someone please help... I have tried this fla file on a couple of pcs and a couple of versions of flash now, version 8 and 9.... Creating new fla and publishing them to swfs on both pcs and in both versions is fine, and even

  • Data Source and Data Store

    Are both Data Source and Data Store the same in BI? If not can someone explain what each one of these terms mean. Thanks for the help