Pass string between two threads in java
- by geeta
I have to search a string in a file and write the matched lines to another file.
I have a thread to read a file and a thread to write a file. I want to send the stringBuffer from read thread to write thread. Please help me to pass this. I amm getting null value passed.
write thread:
class OutputThread extends Thread{
/****************** Writes…