syпchronized void put ( int п) {
while (valueSet )
try {
wait ( ) ;
catch ( nterruptedException е) {
System.out.println (
this.n;
"Исключение типа I nterruptedExcepti on перехвачено " );
valueSet = true ;
Systern .out .printlп ( "Oтпpaвлeнo : "+ n ) ;
notify( ) ;