Created
December 17, 2020 05:00
-
-
Save jasonnerothin/b053ddfe617ad4c5165b9f78af3bd2da to your computer and use it in GitHub Desktop.
OS & Architecture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class arch{ | |
public static void main(String[] args) throws Exception{ | |
String os = System.getProperty("os.name").toLowerCase().replace(" ", "_"); | |
String arch = System.getProperty("os.arch").toLowerCase().replace(" ", "_"); | |
System.out.println("OS: " + os + " arch: " + arch ); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment