An application is to be developed that manages the wardens and prisoners at a prison. Each prisoner is identified by a unique number. Details, such as name and number of days left to serve in prison, need to be stored for each prisoner as well as the unique identifier. Some prisoners are categorised as high security prisoners, in which case additional information must be stored, such as security level and whether or not the prisoner can share a cell with another prisoner. Wardens have a rank in the range 1 to 5, where a rank of 5 indicates the highest level of experience. The application must provide the following functionality
1.Add,Find,Delete and Release prisoner
2.Add,Find and Delete warden
3.Check if the prison has an appropriate set of wardens for the current prisoners. The prison should have no less than 1 warden for every 5 prisoners. The prison must have 2 wardens of rank 3 or above for every 4 high security prisoners.
Now question is how in GUI to check if the prison has an appropriate set of wardens for the current prisoners. The prison should have no less than 1 warden for every 5 prisoners. The prison must have 2 wardens of rank 3 or above for every 4 high security prisoners.
Even after making JLabel public doesn't solve my problem as when I run the program I am getting Exception in thread "main" java.lang.NullPointerException