forked from JavaOPs/startjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVariable.java
More file actions
22 lines (21 loc) · 1.01 KB
/
Variable.java
File metadata and controls
22 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class Variable {
public static void main(String[] args) {
byte cpuCores = 4;
short numOfPackages = 3600;
int gpuMemSizeInKB = 8 * 1024 * 1024;
long totalDiskSpaceInKB = 256 * 1024 * 1024;
float cpuFrequencyGHz = 3.60f;
double memorySizeGB = 6.1;
// char[] osType = "Ubuntu".toCharArray();
char[] osType = {85, 98, 117, 110, 116, 117} /* "Ubuntu".toCharArray() the same */;
boolean isUpToDate = true;
System.out.println("CPU cores count: " + cpuCores);
System.out.println("Number of packages: " + numOfPackages);
System.out.println("GPU memory size in KBs: " + gpuMemSizeInKB);
System.out.println("Total disk space in KBs: " + totalDiskSpaceInKB);
System.out.println("CPU frequency in GHz: " + cpuFrequencyGHz);
System.out.println("Memory size in GBs: " + memorySizeGB);
System.out.println("OS type: " + new String(osType));
System.out.println("Is up-to-date: " + isUpToDate);
}
}