[SOLVED]Alphabet timer help.
I'm creating a program that times the user on how fast they can enter the alphabet. I also want to tell the user between which two letters the greatest time gap was. The method i'm trying now involves taking the difference, and then at next keyevent takes the difference of the two differences and only stores the greater one.
here is the code i'm trying:
ke is my KeyEvent, and all my variables are long with initial value of 0.
System.out.println("Initial first: "+first);
System.out.println("Initial second: "+second);
if(second!=0 && time==0)
System.out.println("Initial time: "+time);
if(time!=0 && secondTime==0)
System.out.println("Second time: "+secondTime);
System.out.println("Time again "+time);