This is just the start of my program, I am curios as to why when I run the program and just press enter, the result I get is "You typed: 13" when the entry is blank. It's baffling me.
import java.io.*;
public class birthYear
{
public static void main(
String[] args) throws java.io.IOException
{
System.out.println("Please type your birth year.");
int x = (int)System.in.read();
System.out.print("You typed: " + x);
}
}