-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.java
More file actions
23 lines (20 loc) · 696 Bytes
/
App.java
File metadata and controls
23 lines (20 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.company.appconfig;
import com.company.app.PvModuleDefinition;
import com.company.app.pvmodulelayouts.defaultlayouts.DefaultPvModuleLayouts;
public final class App {
public static void main(String[] args) {
new DefaultPvModuleLayouts().optimalLayoutFor(
() -> Double.parseDouble(args[0]),
new PvModuleDefinition() {
@Override
public double widthInMeters() {
return Double.parseDouble(args[1]);
}
@Override
public double lengthInMeters() {
return Double.parseDouble(args[2]);
}
}
);
}
}