Practice Java Program - Reaction Timer #58

preview_player
Показать описание

Build your own reaction timer to practice your java programming! ✅Hopefully, this practice java program has helped you learn some java!

This practice java program will print out a timer, have a user enter input and then print out the reaction time in milliseconds.

This practice java program can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!

I hope you enjoyed this java practice program! I like to have a nice mix of tutorials and practice java programs for you all :)

Was this practice java program helpful for you?

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee
Рекомендации по теме
Комментарии
Автор

For anyone asking how to turn milliseconds into second, here is the solution.
If u divide reactionTime by 1000 the output should be in seconds.

/ 1000);

husseinwahussein
Автор

This was so easy and fun to make! After a month of watching and practicing java i came back to this video and understood everything that you were coding. Thank you Alex!

AyshaFilms
Автор

BRILLIANT! Here i was thinking it was going be so difficult to build a reaction timer for my game! thanks buddy, you just earned my sub!

mragunathan
Автор

the last piece to my first project, thank you!!! just coded my first timer and this was the only thing left i need, my while loop was running too fast and i needed this to slow down to 1 sec intervals.

imperfectCraft
Автор

One of the best tutorials on YouTube! Very easy to follow and informative, please make more of these bro!

akramnadri
Автор

Crystal clear and easy to understand! Thank you

haihonglei
Автор

I'd like to add a graphical interface to this game! Maybe a way to map to clicks on specific parts of the screen! Thanks for the lesson!

StinkiiChan
Автор

You're amazing Please Keep Updating

Mike-mwfu
Автор

I know this is probably a stupid question but im just a kid

why did you subtract the stoptime by the start time
this is probably a dumb question but could somebody please help me out here

meat
Автор

scanner is to get input in the console only right ?

randomguy
Автор

Can we have seconds in place of milliseconds i.e. in the output the reaction time is in a form of milliseconds, can we have the reaction time in seconds..??

shraddhakebhajans
Автор

Hi Alex This doesnt work for me the character from the keyboard appears in code window and so doesnt stop the program. I’m using IntelliJ

kelticguy
Автор

It would be good to exclude ENTER for reaction time.

fanpage
Автор

Hello
I made this program on notepad and it is giving me errors and error is in line"Thread.sleep(1000);
Can you help me plz.

RS-wqqs
Автор

hi i just started laerning this i wrote the same things you did in scrimba but i keept geting errors i tried with console.log but i couldnt do the dilay can u help me pls

danielguzel
Автор

Should use millis for everything instead of using sleep. Sleep is bad practice.

mattnsac
Автор

*the two people who DISLIKED this are the noobs who make games on "ScRaTcH"*
Stupid dislikers never understand the importance of intelligence from youtube

Edit - and yea I myself am a bot cuz I code on *"BlUe J"* which is another Java platform but *WORSE*
U eclipse users will not understand how much us blue j users have to suffer by typing manually *every single command* (like import.java.util.*; or like System.out.println(); and not just right clicking to get the command typed for us :(

lamellama