Synchronization. Java 7. Console