Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Rectangle {
- public static void main(String[] args) {
- }
- //----------------------- Methods ------------------------------- \\
- //--- getMeasurement Methods ---\\
- public static int getLength(int l) {
- Scanner keybd = new Scanner(System.in);
- int length = 0;
- System.out.println("Input length:");
- length = keybd.nextInt();
- return length;
- }
- public static int getWidth(int w) {
- Scanner keybd = new Scanner(System.in);
- int width = 0;
- System.out.println("Input width:");
- width = keybd.nextInt();
- return width;
- }
- public static int getHeight(int h) {
- Scanner keybd = new Scanner(System.in);
- int height = 0;
- System.out.println("Input height:");
- height = keybd.nextInt();
- return height;
- }
- //--- setMeasurement Methods ---\\
- public class static int setLength(int l) {
- }
- public class static int setWidth(int w) {
- }
- public class static int setHeight(int h) {
- }
- //--- Formula methods ---\\
- public class static int showFormula(int a, int p, int v) {
- int area;
- int perimeter = 0;
- int volume = 0;
- return area, perimeter, volume;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement