I'm kind of a coding newb but i managed to make this:

import java.util.Scanner;

public class ReactionGame {

public static void main(String[] args) {

int Time = 0;
String s = null;