-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
40 lines (34 loc) · 988 Bytes
/
Copy pathMain.java
File metadata and controls
40 lines (34 loc) · 988 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
31
32
33
34
35
36
37
38
39
40
import java.util.Scanner;
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) {
ArrayTriangles triangles = new ArrayTriangles();
/*Triangle triangle = new Triangle(0,0,0,0,0,0);
Scanner str=new Scanner(System.in);
while(true){
System.out.println("1:Add triangle");
System.out.println("2:Show top");
System.out.println("3:Show info");
System.out.println("4:Exit");
switch(str.nextInt()){
case 1: {
System.out.println("Enter coordinate of points");
triangles.addTriangle(str.nextDouble(),str.nextDouble(),str.nextDouble(),str.nextDouble(),str.nextDouble(),str.nextDouble());
}
case 2:{
}
case 3:{
for (Triangle triangle : triangles) {
System.out.println(triangle.showInfo());
}
}
case 4:{
System.exit(0);
}
default:
}
}
*/
}
}