private static void addScreen(String screeName){
  if (history.size() >= MAX_HISTORY) {
    history.remove(0);
  }
  history.add(screeName);
}

private static void addScreen ( String screeName ) { if ( history . size ( ) >= MAX_HISTORY ) { history . remove ( 0 ) ; } history . add ( screeName ) ; }
adds the screen to history .
