/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package gazstation2; import java.util.Random; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author denis */ class FilingColumn { private int bigTank; private volatile boolean isOpen; public FilingColumn (){ bigTank = new Random().nextInt(500); isOpen = true; } public int getBigTank() { return bigTank; } public synchronized boolean getFuel(Car car, int fuel) { if(isOpen){ if(bigTank