Facebook
From Mammoth Crane, 6 Years ago, written in Java.
Embed
Download Paste or View Raw
Hits: 237
  1. package butelka;
  2.  
  3. public class Butelka {
  4.  
  5.     double ileLitrow;
  6.  
  7.     Butelka() {
  8.  
  9.     }
  10.  
  11.     Butelka(double ileLitrow) {
  12.         this.ileLitrow = ileLitrow;
  13.     }
  14.  
  15.     public static void main(String[] args) {
  16.         Butelka[] butelka = new Butelka[5];
  17.         for (int i = 0; i < butelka.length; i++) {
  18.             butelka[i] = new Butelka(i + 1);
  19.  
  20.         }
  21.  
  22.     }
  23. }
  24.