Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Page {
- public LocalPerk[] entrys = new LocalPerk[15];
- public boolean addEntry(LocalPerk e){
- //Itterate through the array
- //Insert the entry at the first empty spot
- //Do somthing if full
- for (int i = 0; i < 15; i++){
- if (entrys[i] == null)
- {
- entrys[i] = e;
- break;
- }
- }
- return (entrys[14] != null) ? true : false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement