资源简介
根据银行卡号 获取银行名称
代码片段和文件信息
package com.fiveyounger.beauty.utils;
/**
* Created by lyq on 2016/6/16.
*/
public class BankNameSearchUtil {
//传入卡号 得到银行名称
public static String getNameOfBank(String idCard) {
int index = -1;
if(idCard==null || idCard.length()<16 || idCard.length()>19){
return “请输入正确的卡号“;
}
//6位Bin号
String cardbin_6 = idCard.substring(0 6);
for (int i = 0; i < bankBin.length; i++) {
if (cardbin_6.equals(bankBin[i])) {
index = i;
break;
}
}
if (index != -1) {
return bankName[index];
}
//8位Bin号
String cardbin_8 = idCard.substring(0 8);
for (int i = 0; i < bankBin.length; i++) {
if (cardbin_8.equals(bankBin[i])) {
index = i;
}
}
if (index != -1) {
return bankName[index];
}
return ““;
}
//BIN号
private final static String[] bankBin =
{
“102033“
“103000“
“185720“
“303781“
“356827“
“356828“
“356833“
“356835“
“356837“
“356838“
“356839“
“356840“
“356885“
“356886“
“356887“
“356888“
“356889“
“356890“
“370246“
“370247“
“370248“
“370249“
“400360“
“400937“
“400938“
“400939“
“400940“
“400941“
“400942“
“402658“
“402673“
“402791“
“403361“
“403391“
“404117“
“404157“
“404171“
“404172“
“404173“
“404174“
“404738“
“404739“
“405512“
“405512“
“406252“
“406254“
“406365“
“407405“
“409665“
“409666“
“409667“
“409668“
“409669“
“409670“
“409671“
“409672“
“410062“
“412962“
“412963“
“415599“
“421317“
“421349“
- 上一篇:安卓TCP/UDP网络调试软件
- 下一篇:JSP外文文献及翻译
相关资源
- android 简单的读取SD卡的所有图片
- 尚硅谷Java基础实战-Bank项目教程
- 银行账户管理系统 Bank ATM System JAVA
- Java操作Redis,实现String、List、Map的
- java发送post和get请求源码及jar包
- java banking 银行管理系统
- Android项目---闹铃备忘录
- 自定义Android中TabHost组件显示在屏幕底
- HttpUtil工具类支持POSTGETHTTPHTTPS
- android.support.v7.widget.RecyclerView
- android文件读取、写入(自带空间、
- mappwidget切图工具
- org.vaadin.addons.dcharts-widget-0.10.0-dchart
- Android登陆get方式和post方式
- httpclient get/post请求工具类map参数封装
- wget 完整版 for android 支持Android8.0 aa
- Java+MySql数据库 模拟ATM自助存取款b
- java实现的http服务器
- httppost和httpget需要的jar包
- Delphi XE8 IDHTTP1.get()方法從Servlet服务
- stripe支付 stripe 支付 -java-国外支付
- mybatis-generator+lombok自动生成mybatis代码
- 航信接口文档
- Get Programming with Go [true PDF]
- dedecms v5.7漏洞批量getshell工具
- GetMusic3.0正式版.apk
- Android网络框架Retrofit2使用封装:Get
- android常用操作:sdcard的读取和写入
- android AppWidgetExample(AppWidget)源码
- android Widget 小部件开发
评论
共有 条评论