Simple Java example of 2 synched threads outputing there values