The Artima Developer Community
Sponsored Link

Java Answers Forum
NEED SERIOUS HELP NOW!!! I'm too NEW at this

1 reply on 1 page. Most recent reply: Feb 19, 2007 6:08 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Taylor Taylor

Posts: 3
Nickname: user10069
Registered: Feb, 2007

NEED SERIOUS HELP NOW!!! I'm too NEW at this Posted: Feb 13, 2007 8:10 PM
Reply to this message Reply
Advertisement
Hello every one I was wondering if some one could show me how to do this problem. I need to know how to write an application!!, where I can type in the time in hours, min, and sec and then the computer out puts me a total equvilance in seconds. To include prompt and Echo.


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: NEED SERIOUS HELP NOW!!! I'm too NEW at this Posted: Feb 19, 2007 6:08 AM
Reply to this message Reply
To make your class runnable, create this method:


public static void main (String[] args) {
//do something useful here
}


To read some user input, use the System.in.read() method.

To parse the input, use the Integer.parseInt() method.

Calculating the seconds should be easy.

Flat View: This topic has 1 reply on 1 page
Topic: NEED SERIOUS HELP NOW!!! I'm too NEW at this Previous Topic   Next Topic Topic: threads..

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use