-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
40 lines (18 loc) · 1.05 KB
/
Main.java
File metadata and controls
40 lines (18 loc) · 1.05 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
34
35
36
37
38
39
40
import java.io.IOException;
public class Main {
public static void main(String [] args) throws IOException {
if(args.length!=0) {
int temp= Integer.parseInt(args[0]);
Server.bid_time+=(temp*60000);
}
else
Server.bid_time+=300000;// if there is no time value for the bidding from the user the default value (5min) will be set for bidding time
float limit =(((Server.bid_time-System.currentTimeMillis())/(float)60000));
System.out.println("Sytem started with the time limit "+Math.round(limit)+" minutes");
ItemMap item_map = new ItemMap(); // Datastructure
CSVReader csvreader = new CSVReader("stocks.csv", item_map); // CSVreader
csvreader.read(); //item_map gets populated with data
Server server = new Server(item_map); // Server
server.start(); // Server starts running here.
}
}