⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util.java

📁 针对网络跑步爱好者作为用户而开发的
💻 JAVA
字号:
package com.briup.run.common.util;

import com.briup.run.common.util.ip.IPSeeker;


public class Util {
	public static String PROVINCE[] = { "��ѡ��", "����", "�Ϻ�", "���", "����", "����",
			"�㶫", "�㽭", "����", "ɽ��", "�Ĵ�", "����", "����", "����", "����", "����", "�ӱ�",
			"����", "����", "����", "ɽ��", "���ɹ�", "����", "����", "�½�", "����", "����", "����",
			"�ຣ", "���", "�۰�̨", "����", "����" };

	public static String getProvinceNameById(String id) {
		return PROVINCE[Integer.parseInt(id)];
	}

	public static String getAddress(String ip) {
		String country = "";
		String area = "";
		IPSeeker seeker = IPSeeker.getInstance();
		country = seeker.getCountry(ip);
		area = seeker.getArea(ip);
		return country + area;
	}

	public static void main(String[] args) {
		System.out.println(getAddress("127.0.0.1"));
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -