📄 environmentutils.java
字号:
package com.cownew.ctk.common;
public class EnvironmentUtils
{
public static String getLineSeparator()
{
return System.getProperty("line.separator");
}
public static String getPathSeparator()
{
return System.getProperty("path.separator");
}
public static String getFileSeparator()
{
return System.getProperty("file.separator");
}
public static String getOSName()
{
return System.getProperty("os.name");
}
public static String getOSVersion()
{
return System.getProperty("os.version");
}
public static String getUserName()
{
return System.getProperty("user.name");
}
public static String getUserHome()
{
return System.getProperty("user.home");
}
public static String getUserDir()
{
return System.getProperty("user.dir");
}
public static String getTempDir()
{
return System.getProperty("java.io.tmpdir");
}
public static String getClassPathSeparator()
{
return "/";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -