Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Billett[] kjøpBilletter(int antall){
- if(ledigePlasser() >= antall){
- Billett[] billettTab = new Billett[ledigePlasser()];
- for(int i = 0; i< billettTab.length; i++){
- billettTab[i] = new StaaplassBillett(getTribunenavn(), getPris());
- }
- antSolgteBilletter += antall;
- return billettTab;
- }
- return null;
- }
Add Comment
Please, Sign In to add comment