cannot find symbol KeyboardObserver keyboardObserver = new KeyboardObserver() .which is the package i need to included for observer class? Code i got public void run() { // Create a KeyboardObserver object and start it. KeyboardObserver keyboardObserver = new KeyboardObserver(); keyboardObserver.start(); // As long as the snake is alive while (snake.isAlive()) { // Does the observer have any key events? if (keyboardObserver.hasKeyEvents()) { KeyEvent event = keyboardObserver.getEventFromTop(); // If 'q', then exit the game. if (event.getKeyChar() == 'q') return; // If "left arrow", then move the figure to the left if (event.getKeyCode() == KeyEvent.VK_LEFT) snake.setDirection(SnakeDirection.LEFT); // If "right arrow", then move the figure to the right else if (event.getKeyCode() == KeyEvent.VK_RIGHT) snake.setDirection(SnakeDirection.RIGHT); // If "up arrow", then move the figure up else if (event.getKeyCode() == KeyEvent.VK_UP) snake.setDirection(SnakeDirection.UP); // If "down arrow", then move the figure down else if (event.getKeyCode() == KeyEvent.VK_DOWN) snake.setDirection(SnakeDirection.DOWN); } snake.move(); // Move the snake print(); // Display the current game state sleep(); // Pause between moves } // Display "Game Over" System.out.println("Game Over!"); }