-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainMethod.java
More file actions
22 lines (15 loc) · 793 Bytes
/
Copy pathmainMethod.java
File metadata and controls
22 lines (15 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.io.*;
import java.lang.management.ManagementFactory;
import java.nio.file.FileStore;
import java.util.Scanner;
public class mainMethod {
public static void main(String[] args)throws FileNotFoundException, StackUnderflowException {
/*Object creation*/
long beforeUsedMem = Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory();
inputParser ip = new inputParser();
TimeComplexity tc = new TimeComplexity();
ip.lineParser();
long AfterUsedMem = Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory();
System.out.println("Total memory used for this program : "+(AfterUsedMem-beforeUsedMem)+" bytes");
}
}