Very Easy Understandable Solution || JAVA
Code


# Code
```java []
class Solution {
    public int maxContainers(int n, int w, int maxWeight) {
        int cell=n*n;
        int count=0;

        while(count+1<=cell && maxWeight-w>=0){
            count++;
            maxWeight-=w;
        }
        return count;
    }
}
```
['Java']