Need your help in below getting java code for below requirement

I have a text file with the below details and we get the input as name CONNECTION_PORT and we need to delete the matching global...