86

获取ip地址-奔跑吧爽爽的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13579086/2069332
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
根据java面向对象的原理,ip地址也被封装成了对象,InetAdressimportjava.net.InetAddress;importjava.net.UnknownHostException;importjava.util.Arrays;importorg.junit.Test;/***获取ip地址*@authorWangShuang**/publicclassDemo{@Testpubl

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK