Home » JAVA Programming » Files and I/O » Question
  1. How can we filter lines based on content?
    1. lines.select()
    2. lines.contains(filter)
    3. lines.filter()
    4. filter(lines)
    5. None of these
Correct Option: C

lines.filter(line -> line.contains(“===—> Loaded package”)) can be used to filter out.



Your comments will be displayed only after manual approval.