Saturday, March 14, 2009

Determining OS Name

if (System.getProperty("os.name").startsWith("Mac"))

{

// do something mac specific System.out.println("hello!");

}

No comments: