Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by putkanka on 9.10.2015 г..
- */
- public class Area {
- static double getAreaCircle(double radius) {
- return Math.PI * radius * radius;
- }
- static double getAreaCylinder(double radius, double height) {
- return 2 * Math.PI * radius * height + 2 * Math.PI * radius * radius;
- }
- static int getAreaRectangle(int height, int width) {
- return height * width;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement