Fixing exceptions

Exception created, not thrown.
Update Cylinder.java
Throw exception
Merge pull request #1 from legolas2000/patch-1

Throwing created exceptions.
(legolas2000)