java 获取指定的信息
2012-03-15 18:42
288 查看
public class systemdemo { public static void main(String[] args) { System.out.println("系统版本为:"+System.getProperty("os.name")+System.getProperty("os.version")+System.getProperty("os.arch")); System.out.println("系统用户为:"+System.getProperty("user.name")); System.out.println("当前用户目录:"+System.getProperty("user.home")); System.out.println("当前用户工作目录: "+System.getProperty("user.dir")); } }
相关文章推荐
- Java代码实现获取安卓手机指定App的流量、CPU和内存占用信息
- Java获取视频的相关信息,并获取指定时间的视频图片
- java 获取指定的信息
- java通过指定的URL获取图片信息(长宽)
- java 发送POST、GET请求时,获取请求的头信息Set-Cookie,请求携带Cookie
- 使用JAVA获取指定网页内容
- Cedar老师的java中的反射学习笔记(三)--获取方法信息
- Java获取系统信息(cpu,内存,硬盘,进程等)的相关方
- java获取AD域用户信息
- Java获取照片EXIF信息
- java 使用递归获取指定文件路径目录,删除指定的文件后缀(可扩展,根据具体需要的删除的后缀进行配置)~~
- java微信网页授权获取用户信息以及JSSDK自定义分享等功能<四>
- java获取当月天数,指定年月的天数,指定日期获取对应星期
- 基于JAVA代码 获取手机基本信息(本机号码,SDK版本,系统版本,手机型号)
- scala调用java的方法,返回了一个对象链表List<Student>,在scala中遍历该链表获取指定Student的名字name
- Java通过webservice接口获取天气信息
- 使用Java获取系统信息的常用代码整理总结
- 获取指定数据库表, 以及指定表的数据信息
- java获取cpu、内存、硬盘信息