This assignment will help you work with the LONG data type. There are not a whole lot of applications where you need to use 'long' unless you work with large numbers a lot (like student id numbers).
What we want to do is to make a program that tests how fast the user can type in a set of keystrokes.
System.currentTimeMillis(); is a system function that tells how many milliseconds have elapsed since time began (ie. 1 January 1970).
There are 5 different sets of keys to type, each with a description to help the user know which set to type.
TOP ROW = qwertyuiop MIDDLE ROW = asdfghjkl; BOTTOM ROW = zxcvbnm, LEFT SIDE = qwerasdfzxcv RIGHT SIDE = uiophjlbnm,Your program will:
We will be using this program later on when we start doing file I/O.
NOTE: if you're reading text from Scanner, always use .nextLine() instead of .next() — unless you have a specific reason not to.