File tree 1 file changed +21
-0
lines changed
RandomProblems/src/sporadic
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ package sporadic ;
2
+
3
+ public class ProgramToFindMachineInfo {
4
+ public static void main (String [] args ) {
5
+ String nameOS = "os.name" ;
6
+ String VersionOS = "os.version" ;
7
+ String architectureOS = "os.arch" ;
8
+ System .out .println ("Info about processor" );
9
+ System .out .println ("NUMBER_OF_PROCESSORS: " + System .getenv ("NUMBER_OF_PROCESSORS" ));
10
+ System .out .println ("Processor MANIFACTURESR: " + System .getenv ("PROCESSOR_INDENTIFIER" ));
11
+ System .out .print ("Info about OS:\t " );
12
+ System .out .print ("\t name of os:" + System .getProperty (nameOS ));
13
+ System .out .print ("\t version os:" + System .getProperty (VersionOS ));
14
+ System .out .print ("\t arch of OS:" + System .getProperty (architectureOS ) + "\n " );
15
+
16
+ System .out .println ("System.getProperties() are: " + System .getProperties () + "\n " );
17
+ System .out .println ("System.getenv() are: " + System .getenv () + "\n " );
18
+ System .out .println ("System.getSecurityManager() are: " + System .getSecurityManager () + "\n " );
19
+
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments