write java coderead the data from file and then File Edit Format View Help 2012-06-29T17:10:19.5662 john@gmail.com start POST /xyz/kogjohned/ 2012-06-29T17:10:19.659Z john@gmail.com finish POST /xyz/kogjohned/ 200 OK 2012-06-29T17:10:21.948Z john@gmail.com start GET /xyz/config 2012-06-29T17:10:21.949Z john@gmail.com finish GET /xyz/config 200 OK 2012-06-29T17:10:24.4232 john@gmail.com start POST /xyz/login/ 2012-06-29T17:10:24.428Z john@gmail.com start GET /xyz/kopjohned 2012-06-29T17:10:24.459Z john@gmail.com start GET /xyz/patientwatchlist 2012-06-29T17:10:24.469Z john@gmail.com finish POST /xyz/login/ 200 OK 2012-06-29T17:10:24.4912 john@gmail.com finish GET /xyz/kopjohned 200 OK 2012-06-29T17:10:24.4922 john@gmail.com finish GET /xyz/patientwatchlist 200 OK write a java code to calculate the average time variable after xyz(for eg kogjohned, config, login etc) between their start and finish was active. and if anything is active twice then get the average, for example kogjohned was active twice so we want sum of both time amd divided by two Show transcribed image text read the data from file and then File Edit Format View Help 2012-06-29T17:10:19.5662 john@gmail.com start POST /xyz/kogjohned/ 2012-06-29T17:10:19.659Z john@gmail.com finish POST /xyz/kogjohned/ 200 OK 2012-06-29T17:10:21.948Z john@gmail.com start GET /xyz/config 2012-06-29T17:10:21.949Z john@gmail.com finish GET /xyz/config 200 OK 2012-06-29T17:10:24.4232 john@gmail.com start POST /xyz/login/ 2012-06-29T17:10:24.428Z john@gmail.com start GET /xyz/kopjohned 2012-06-29T17:10:24.459Z john@gmail.com start GET /xyz/patientwatchlist 2012-06-29T17:10:24.469Z john@gmail.com finish POST /xyz/login/ 200 OK 2012-06-29T17:10:24.4912 john@gmail.com finish GET /xyz/kopjohned 200 OK 2012-06-29T17:10:24.4922 john@gmail.com finish GET /xyz/patientwatchlist 200 OK write a java code to calculate the average time variable after xyz(for eg kogjohned, config, login etc) between their start and finish was active. and if anything is active twice then get the average, for example kogjohned was active twice so we want sum of both time amd divided by two
Expert Answer
Answer to read the data from file and then File Edit Format View Help 2012-06-29T17:10:19.5662 john@gmail.com start POST /xyz/kogj…