In this way, using the knowledge in computational language in JAVA it is possible to write a code that identifies the directories and also the people who own these directories:
<h3>Writing the code we have:</h3>
<em>import java.util.Scanner;</em>
<em>public class PersonnelDirectory</em>
<em>{</em>
<em>public static void main(String[] args)</em>
<em>{</em>
<em>Personnel per = new Personnel();</em>
<em>totalObjects total = new totalObjects();</em>
<em>Scanner scan = new Scanner(System.in);</em>
<em>String firstN, lastN, middleN;</em>
<em>int empID;</em>
<em>double salary;</em>
<em>int choice = -1;</em>
<em>do{</em>
<em>System.out.println("Welcome to the Personnel Directory Management System");</em>
<em>System.out.println("\n\n\t 1. Add Personel");</em>
<em>System.out.println("\n\t 2. Find Personel");</em>
<em>System.out.println("\n\t 3. Print Names");</em>
<em>System.out.println("\n\t 4. Number of Entries in the Directory");</em>
<em>System.out.println("\n\t Select one of the options above (1, 2, 3, 4)");</em>
<em>choice = scan.nextInt();</em>
<em>scan.nextLine();</em>
<em>switch(choice)</em>
<em>{</em>
See more about JAVA at brainly.com/question/12975450
#SPJ1