Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int[] bordPåPerson(String navn){
- int lengde = 0;
- for(int j = 0; j<bord.length;j++){
- if(bord[j] != null && bord[j].equalsIgnoreCase(navn)){
- lengde++;
- }
- }
- int[] antallBord = new int[lengde];
- int hjelp = 0;
- for(int i = 0; i< bord.length;i++){
- if(bord[i] != null && bord[i].equalsIgnoreCase(navn)){
- antallBord[hjelp] = i;
- hjelp++;
- }
- }
- return antallBord;
- }
Add Comment
Please, Sign In to add comment