Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /**
  2. * Created by putkanka on 9.10.2015 г..
  3. */
  4. public class Area {
  5.  
  6.  
  7. static double getAreaCircle(double radius) {
  8.  
  9. return Math.PI * radius * radius;
  10. }
  11.  
  12. static double getAreaCylinder(double radius, double height) {
  13.  
  14. return 2 * Math.PI * radius * height + 2 * Math.PI * radius * radius;
  15. }
  16.  
  17. static int getAreaRectangle(int height, int width) {
  18.  
  19. return height * width;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement