Your problem is probably because of how the Scanner class works. There is a problem with calling nextLine after calling other next methods. Read this for an explanation:...