Herbert schildt source code - Calculator - BS Source

Java multithreading problem?

The two programs below produce the desired output even when I'm using 'synchronized'......Can anyone explain whats wrong with the code.The code is from Herbert Schildt,though I made some changes.
CODE 1:
class callMe
{


Interesting. Please state you goal, but I think I figured it out. You want to print the whole message, so that it's not interleaved right?

Here's the problem...I think. Synchronized puts a lock so that nobody else can enter this method

Advanced Topics in Programming Languages: Java Puzzlers,...

Google Tech Talks July 23, 2007 ABSTRACT Java Puzzlers, Episode VI: The Phantom-Reference Menace/Attack of the Clone/Revenge of the Shift. Josh ...

JAVA

Disclaimer : This blog contains only links to other sites on the Internet, which are distributed for free over the Internet.

Herbert schildt source code - Bookshelf


Java the Complete Reference, Seventh Edition
1024 pages
Java the Complete Reference, Seventh Edition

When Java source code is compiled, each individual class is put into its own output file named after the class and using the .class extension. ...

C# 4.0 The Complete Reference
949 pages
C# 4.0 The Complete Reference

Java achieved portability by translating a program's source code into an intermediate language called bytecode. This bytecode was then executed by the Java ...

The art of C++
401 pages
The art of C++

Tokenizing the Source Code Fundamental to all interpreters (and compilers, for that matter) is a mechanism that reduces the source code into its constituent ...

Java 2, a beginner's guide
565 pages
Java 2, a beginner's guide

Source code will be available through the Oracle Internet Academy online offering of ... offering Herbert Schildt is the world's leading programming author, ...

Java The Complete Reference, Eighth Edition
1000 pages
Java The Complete Reference, Eighth Edition

When Java source code is compiled, each individual class is put into its own output file named after the class and using the .class extension. ...