Dynamically loading Data from keyboard in JAVA