C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

How to Determine operating system using System class?

0 votes
97 views
asked May 13, 2014 by augustaina Sr Member (4,820 points)

1 Answer

0 votes
public class Main {

  public static void main(String[] args) {
    System.out.println(System.getProperty("os.name"));
  }
}

output
Windows NT
answered May 13, 2014 by smith Geek (15,340 points)

Related questions

0 votes
1 answer 929 views
929 views asked May 12, 2014 by augustaina Sr Member (4,820 points)
0 votes
1 answer 101 views
101 views asked May 13, 2014 by augustaina Sr Member (4,820 points)
0 votes
1 answer 19 views
19 views asked May 3, 2014 by rock Expert (14,990 points)
0 votes
1 answer 17 views
17 views asked May 4, 2014 by john Guru (27,140 points)
0 votes
1 answer 103 views
103 views asked May 13, 2014 by rock Expert (14,990 points)
...