Java Java Objects Harnessing the Power of Objects Filling the Dispenser

why you use the same class name at the method name and why you use the same variable name twice :/ ????

/: