Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WinDetect {
- private static String OS = System.getProperty("os.name").toLowerCase();
- private static String BIT = System.getProperty("os.arch").toLowerCase();
- private static String VERSION = System.getProperty("os.version").toLowerCase();
- public static void main(String[] args) {
- System.out.println("OS "+OS + " "+BIT+" bit,"+ " "+" VERSION "+VERSION);
- }
- }
Add Comment
Please, Sign In to add comment