Question: Java Question I only put all line into the set, but have trouble with the output part. 1. [5 marks] Read the input one line
Java Question
I only put all line into the set, but have trouble with the output part.

![trouble with the output part. 1. [5 marks] Read the input one](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66efd07c5be9c_50766efd07bc9842.jpg)
1. [5 marks] Read the input one line at a time until you have read all n lines and imagine these lines are numbered ., Next output lines floor(n/2 . -1 followed by lines 0, floor(n 2)-1 Your code goes here - see Parte for an example @param r the reader to read from @param w the writer to write to @throws IOException o: public static void doIt(BufferedReader r, Printwriter w) throws IOException 7 Your code goes here -see Parte for an example Set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
