Advertisement
sergAccount

Untitled

Dec 13th, 2020
899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.ja9;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Main2 {
  13.  
  14.     public static void printAllBoxes(Box[] array) {
  15.  
  16.     }
  17.     //
  18.     public static void main(String[] args) {
  19.         Box b1 = new Box(0, 0, 0, 0, 0, 0);
  20.         Box b2 = new Box(0, 0, 0, 0, 0, 1);
  21.        
  22.         Box[] array = {b1, b2};
  23.        
  24.         Box[] array1 = {new Box(0, 0, 0, 0, 0, 0), new Box(0, 0, 0, 0, 0, 1)};
  25.         printAllBoxes(array1);
  26.         //
  27.         printAllBoxes(new Box[]{new Box(0, 0, 0, 0, 0, 0), new Box(0, 0, 0, 0, 0, 1)});
  28.     }
  29. }
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement