Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Osiol{
- private double masa;
- Balon[] balony;
- void dodajBalon(Balon balon){
- if(this.balony == null) {
- this.balony = new Balon[1];
- this.balony[0] = balon;
- }else{
- Balon[] tmp = new Balon[this.balony.length+1];
- for(int i = 0; i<this.balony.length; i++)
- tmp[i] = this.balony[i];
- this.balony = tmp;
- this.balony[this.balony.length - 1] = balon;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement