I don't understand how it can be safe though. Will it just wait untill thread 'one' has finished?

Also, what would happen to the getIntegerFromConsole() ?