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
102 views
asked 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 by smith Geek (15,340 points)

Related questions

0 votes
1 answer 930 views
930 views asked by augustaina Sr Member (4,820 points)
0 votes
1 answer 106 views
0 votes
1 answer 20 views
0 votes
1 answer 18 views
0 votes
1 answer 109 views
...