Having trouble with a Zoo Monitoring system. Using NetBeans. ihave worked out most of the bugs but now its only printing thefirst few lines of the text file (it prints the lines that beginwith “Details” and not continuing to the rest to find the lineswith ***** in them to pop up the Joption pane with the alert forthat line. below is the code for both java files, as well as the.txt files its reading from.
ZooMonitor.java
package zoomonitor;
//import needed options
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author jsacc
*/
public class ZooMonitor {
static FileRead fr=new FileRead();
private static final Scanner sc=new Scanner(System.in);
public static void main(String[] args)