- 封装一个ip信息的poji
package nuc.edu.lisheng; public class IpAddress { private long min; private long max; private String address; private String carrier; public long getMin() { return min; } public void setMin(long min) { this.min = min; } public long getMax() { return max; } public void setMax(long max) { this.max = max; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCarrier() { return carrier; } public void setCarrier(String carrier) { this.carrier = carrier; } public IpAddress(long min, long max, String address, String carrier) { super(); this.min = min; this.max = max; this.address = address; this.carrier = carrier; } public IpAddress() { super(); // TODO Auto-generated constructor stub } @Override public String toString() { return "该ip的地址为:"+address
Java根据输入的ip得到对应的地址及运营商等信息
最新推荐文章于 2024-07-04 21:29:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)