package GenericProgramma;
class Pair<K, V>
{
private static Object Pair;
public K[] getKey;
public V[] getValue;
public Pair()
{
}
public Pair(K[] getKey,V[] getValue)
{
this.getKey = getKey;
this.getValue = getValue;
}
public void showBookInfo()
{
System.out.println("银行名称\t\t存款时间\t户名\t币种\t存款金额\t账户余额");
System.out.println("----------------------------------------------");
for (int i = 0; i <getKey.length;i++)
{
System.out.print(getKey[i]+"\t");
}
}
public static void main(String[] args)
{
String[] info = {"张三","Rmb","8888.00RMB","18,888.88RMB"};
String[] info1 = {"张三","Rmb","8888.00RMB","18,888.88RMB"};
Pair <String,String> book = new Pair<String,String>(info,info1);
book.showBookInfo();
}
}