import java.util.Scanner;

class Sep8 {

	public static void main(String[] args) {

		/*
		 * Set up a Scanner to read from the keyboard.
		 */

		Scanner kb = new Scanner(System.in);

		/* 
		 * Read a value from the keyboard and store it in a variable, then 
		 * print the value that is stored in the variable to the screen.   
		 */

		System.out.println("please enter an integer");
		int x = kb.nextInt();
		System.out.println("the value of x is " + x);	
	

		/*
		 * Read in a token (a string of characters up to the first whitespace).
		 */

		System.out.println("please enter your first name");
		String fname = kb.next();
		System.out.println("name is " + fname);

		
		/*
		 * Below we will want to read a whole line of characters.  Since we still
		 * have a newline character at the end of the buffer, we need to remove
		 * it from the buffer before we call kb.nextLine().
		 */

		kb.skip("\\R");

		/*
		 * Read in a string of characters up to the newline character.
		 */

		System.out.println("please enter your whole name");
		String name = kb.nextLine();
		System.out.println("name is " + name);

		/*
		 * Read in a token, retrieve the first character in the token and save
		 * it in a variable.
		 */

		System.out.println("please enter a word");
		String word = kb.next();
		char firstCharacter = word.charAt(0);
		System.out.println("first character is (" + firstCharacter + ")");

		/*
		 * Read in a decimal number and round it down.
		 */

		System.out.println("please enter a decimal number");
		double number = kb.nextDouble();
		double fl = Math.floor(number);
		System.out.println("the floor of the number is " + fl);
	}
}

// end of file
