<prompt> Unda programu ya Java inayosoma faili ya maandishi iliyo na mistari ya nambari kamili zilizotenganishwa na nafasi, kukokotoa jumla ya kila mstari, na kuandika matokeo kwa faili mpya ya pato, tokeo moja kwa kila mstari.PLINFORMAT  <response>: agiza java.io.BufferedReader;agiza java.io.BufferedWriter;agiza java.io.FileReader;agiza java.io.FileWriter;agiza java.io.IOException;darasa la umma SumOfIntegers utupu tuli wa umma String args String inputFileName input.txt; String outputFileName output.txt; jaribu BufferedReader reader new BufferedReadernew FileReaderinputFileName; BufferedWriter writer new BufferedWriternew FileWriteroutputFileName Mstari wa kamba; wakati line reader.readLine ! null int sum mahesabuSummstari; writer.writeInteger.toStringjumla; mwandishi.Mstari mpya; kukamata IOException e System.err.printlnHitilafu ya kusoma au kuandika faili: e.getMessage; kibinafsi tuli int mahesabuSumMstari wa kamba Kamba namba line.splits; jumla ya int 0; kwa Nambari ya kamba: nambari jumla Integer.parseIntnambari; jumla ya kurudi; 