Here you can find the source of isWindows()
private static boolean isWindows()
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { private static boolean isWindows() { return File.separatorChar == '\\'; }/*from www. java2s . co m*/ }