hello, I have a problem. Hope that you can do me a favour. Thanks
I have written a java application. there are mainly 2 sentences inside it, as shown below:
Runtime.getRuntim().exec("WRITE_SOMETHING_TO_A_FILE.exe"
Runtime.getRuntim().exec("READ_THOSE_THINGS_AND_PROCESS.exe"
The problem is that the first command may need a lot of time to process. But then the second command has begun to run without waiting for the finish of the first command. So may I ask if there is any method to let first command finish and then run the second one?
thanks
I have written a java application. there are mainly 2 sentences inside it, as shown below:
Runtime.getRuntim().exec("WRITE_SOMETHING_TO_A_FILE.exe"
Runtime.getRuntim().exec("READ_THOSE_THINGS_AND_PROCESS.exe"
The problem is that the first command may need a lot of time to process. But then the second command has begun to run without waiting for the finish of the first command. So may I ask if there is any method to let first command finish and then run the second one?
thanks