Write an addressBook class that manages a collection of Person objects,An addressBook object will allow the programmer to add,delete,or search for a Person object in the addressBook.
code:
import java util.*;
class AdressBook{
private String person,inputstr;
private int age;
char gender;
Person Bob;
Bob=new Person();
for (int i=2;i<names.length-1;i++)
names[i]=names[i+1];
for (int i=0;i<names.length;i++)
if (names[i].equals("Bob")){
System.out.println("Bob was not in the array");
}
else{
System.out.println("Bob was in the array");
}
this is the code ,but it return error...any solution on it