SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Kaningaard {
  2.     private Kanin[] kaniner = new Kanin[100];
  3.     public Kanin k;
  4.    
  5.     public boolean full() {
  6.         return(kaniner[99] != null);
  7.     }
  8.  
  9.     public boolean tom() {
  10.         return(kaniner[0] == null);
  11.     }
  12.  
  13.     public Kanin finnEn(String navn) {
  14.  
  15.         for (Kanin k : kaniner) {
  16.             if (k.hentNavn().equals(navn)) {
  17.                 return k;
  18.             }
  19.         }
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top