-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
25 lines (14 loc) · 717 Bytes
/
App.java
File metadata and controls
25 lines (14 loc) · 717 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
import java.io.Console;
public class App {
public static void main(String[] args) {
Console console = System.console();
System.out.println("Please input the length of the first side of a triangle.");
int lengthOne = Integer.parseInt(console.readLine());
System.out.println("Please inout the length of the second side of a triangle.");
int lengthTwo = Integer.parseInt(console.readLine());
System.out.println("Please input the length of the third side of a triangle.");
int lengthThree = Integer.parseInt(console.readLine());
Triangle userTriangle = new Triangle(lengthOne, lengthTwo, lengthThree);
userTriangle.typeOfTriangle(lengthOne, lengthTwo, lengthThree);
}
}