I use JBuilder to write ,compile and run Java programs ...How to read the inputs from the user?
entesar
2006-02-06 13:33:27 UTC
i use Scanner and JoptionDailog but the JBuilder give me some errors...
Is the JBuilder enughe to run all Java Commands? Or i must install another thing??
Three answers:
Darrius
2006-03-25 15:37:04 UTC
Jbuilder is just a development environment. To use it, you must give it a valid java runtime environment. That environment contains the entire Java language, so you don't need to install something else.
Short of specifying what the actual problem is, the only thing I can say is that you are not using the Scanner and JOptionDialog properly.
(Scanner does not seem to be an actual class from the original Java API. Did you mean something else?
Edit: The Scanner class is a new class in JRE 5.0 - Just ensure JBuilder is using JRE 5.0)
?
2016-12-12 18:14:52 UTC
we do not write code for you. you want to do it and positioned up it the following once you've a situation. i'd propose you first attempt to remodel the seconds to hours. in case you do not have adequate seconds to make an hour, then attempt to remodel to minutes. for instance an hour has 3600 seconds, so divide 9630 through 3600 and also you could get 2. it really is your hours. subtract 7200 from 9630 and that go away you with 2430 seconds. There are 60 seconds in a minute so divde through 60 and also you get 40. There are your minutes. Now subtract 2400 from 2430 and also you're left with 30 seconds. So 9630 seconds is two hours, 40 minutes, 30 seconds
bigbubba
2006-02-06 16:30:48 UTC
It would help if you added the specific error.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.