The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
lalala
Posted by: Teste.java | January 5, 2008 @ 9:38am
Javascript Code
[
Download
]
public class Database { static final int DEFAULT_SIZE=200; static final int MAX_LOG_MEMORY_PER_CONTACT=100; public int counter=0; // Disposi��o de dados no array: [Nick Email Idade Sexo Grupo Estado Bloquiado NomeCompleto | ... | n ] private String [] adressBook; public Database(){ adressBook = new String[DEFAULT_SIZE]; } public void addContact(String data){ } public String getStringData(int type, int pos){ } public int getIntData(int type, int pos){ } public int getPosition(String nick){ int count=0; for(int i=1; count==0 && i<=nick.length(); i++) if(nicks[i]==nick)count=i; return count; } public boolean isBlocked(int pos){ return blocked[pos]; } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.58 / 8
180 Votes