1. public class Database {
  2.  
  3. static final int DEFAULT_SIZE=200;
  4. static final int MAX_LOG_MEMORY_PER_CONTACT=100;
  5. public int counter=0;
  6.  
  7.  
  8. // Disposição de dados no array: [Nick Email Idade Sexo Grupo Estado Bloquiado NomeCompleto | ... | n ]
  9. private String [] adressBook;
  10.  
  11.  
  12.  
  13. public Database(){
  14. adressBook = new String[DEFAULT_SIZE];
  15. }
  16. public void addContact(String data){
  17.  
  18. }
  19. public String getStringData(int type, int pos){
  20.  
  21. }
  22. public int getIntData(int type, int pos){
  23.  
  24. }
  25. public int getPosition(String nick){
  26. int count=0;
  27. for(int i=1; count==0 && i<=nick.length(); i++)
  28. if(nicks[i]==nick)count=i;
  29. return count;
  30. }
  31. public boolean isBlocked(int pos){
  32. return blocked[pos];
  33. }
  34. }
  35.