- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
百度广告
package com.kuaff.jdk5package;
import java.io.IOException;
import java.util.ArrayList;
public class ProcessBuilderShow
public static List getPhysicalAddress()
Process p = null;
List address = new ArrayList();
try
//执行ipconfig /all命令
}
{
}
StringBuffer sb = new StringBuffer();
InputStream in = p.getInputStream();
{
0)
sb.append(new String(b));
}
{
finally
try
in.close();
catch (IOException e2)
}
//以下分析输出值,得到物理网卡
int i = rtValue.indexOf("Physical Address. . . . . . . . . :");
0)
rtValue = rtValue.substring(i + "Physical Address. . . . . . . . . :".length());
i = rtValue.indexOf("Physical Address. . . . . . . . . :");
public static void main(String args)
List address = ProcessBuilderShow.getPhysicalAddress();
{
}
责编:罗莉
上一篇:使用J2ME发送手机短信息
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>