Advertisement
Guest User

Rectangle

a guest
Jan 26th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.22 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Rectangle {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.     }
  8.     //----------------------- Methods ------------------------------- \\   
  9.    
  10.                 //--- getMeasurement Methods ---\\
  11.    
  12.     public static int getLength(int l) {
  13.         Scanner keybd = new Scanner(System.in);
  14.         int length = 0;
  15.        
  16.         System.out.println("Input length:");
  17.         length = keybd.nextInt();
  18.        
  19.         return length;
  20.     }
  21.    
  22.     public static int getWidth(int w) {
  23.         Scanner keybd = new Scanner(System.in);
  24.         int width = 0;
  25.        
  26.         System.out.println("Input width:");
  27.         width = keybd.nextInt();
  28.        
  29.         return width;
  30.     }
  31.    
  32.     public static int getHeight(int h) {
  33.         Scanner keybd = new Scanner(System.in);
  34.         int height = 0;
  35.        
  36.         System.out.println("Input height:");
  37.         height = keybd.nextInt();
  38.        
  39.         return height;
  40.     }
  41.    
  42.                         //--- setMeasurement Methods ---\\
  43.    
  44.     public class static int setLength(int l) {
  45.        
  46.     }
  47.    
  48.     public class static int setWidth(int w) {
  49.        
  50.     }
  51.    
  52.     public class static int setHeight(int h) {
  53.    
  54.     }
  55.                         //--- Formula methods ---\\
  56.     public class static int showFormula(int a, int p, int v) {
  57.         int area;
  58.         int perimeter = 0;
  59.         int volume = 0;
  60.        
  61.        
  62.        
  63.        
  64.         return area, perimeter, volume;
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement