I have 2 matrices and I need to multiply them and then print the results of each cell. As soon as one cell is ready I need to print it, but for example I need to print the [
You can only call notify on objects where you own their monitor. So you need something like
synchronized(threadObject) { threadObject.notify(); }