-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathMain.java
More file actions
33 lines (28 loc) · 1.02 KB
/
Main.java
File metadata and controls
33 lines (28 loc) · 1.02 KB
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
package org.example;
import org.example.BigDecimalOperations.BigDecimalTask;
import org.example.CarInventorySystem.Truck;
import org.example.CarInventorySystem.UtilityVehicle;
import java.math.BigDecimal;
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
public static void main(String[] args) {
UtilityVehicle utilityVehicle = new UtilityVehicle("1234"
,"Porsche"
,"911TurboS"
,1200
,false);
Truck truck = new Truck(
"34567"
,"Kamaz"
,"asdasd"
,12323423
,2000
);
System.out.println(truck.getTowingCapacity());
System.out.println(utilityVehicle.getInfo());
// System.out.println(BigDecimalTask.nearestHundredth(BigDecimal.valueOf(4.2545)));
// System.out.println(BigDecimalTask.reverseNearestTenth(BigDecimal.valueOf(1.2345)));;
//
}
}