forked from oleksandr-kazimirov/pointer-rectangle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRect
More file actions
31 lines (22 loc) · 573 Bytes
/
Copy pathRect
File metadata and controls
31 lines (22 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.company;
public class Rect {
public int len=10;
public int wid=20;
public int Ploscha;
public int i;
public int perumeter;
public Rect(int len, int wid, int ploscha, int perimeter) {
this.len = len;
this.wid = wid;
}
public Rect() {
}
public void Ploscha(int i,int i1) {
Ploscha= len*wid;
System.out.println(Ploscha+" "+"Square");
}
public void perumeter(int i,int i1) {
perumeter= (len+wid)*2;
System.out.println(perumeter + " " + "Perumeter");
}
}