Invoke 2 methods from same runnable in java
I am writing a class which implements Runnable. The following is my run() method.

    		public void run() {
			this.rec.startRecording();
			while (!this.done) {
				int nshorts = this.readBlock();
				if (nshorts <= 0)
					break;
			}
			
			this.rec.stop();
			this.rec.release();
		}

		int readBlock() {
			short[] buf = new short[this.block_size];
			int nshorts = this.rec.read(buf, 0, buf.length);
			if (nshorts > 0) {
				this.q.add(buf);
			}
			return nshorts;
		}

As you can see, I call a method readBlock(); I would like to have some more code to be added to the method readBlock() . BUt I clearly noticed that, while I add some code to readBlock(), it yields a different output than what it gives normally.

So, my question here is , how can I call one more method apart from readBlock()from run(), such that the new method would be completely independent and does not affect the output of  readBlock() . If my question is unclear anywhere, kindly let me know.
Invoke 2 methods from same runnable in java
===

I am writing a class which implements Runnable. The following is my run() method.

    		public void run() {
			this.rec.startRecording();
			while (!this.done) {
				int nshorts = this.readBlock();
				if (nshorts <= 0)
					break;
			}
			
			this.rec.stop();
			this.rec.release();
		}

		int readBlock() {
			short[] buf = new short[this.block_size];
			int nshorts = this.rec.read(buf, 0, buf.length);
			if (nshorts > 0) {
				this.q.add(buf);
			}
			return nshorts;
		}

As you can see, I call a method readBlock(); I would like to have some more code to be added to the method readBlock() . BUt I clearly noticed that, while I add some code to readBlock(), it yields a different output than what it gives normally.

So, my question here is , how can I call one more method apart from readBlock()from run(), such that the new method would be completely independent and does not affect the output of  readBlock() . If my question is unclear anywhere, kindly let me know.