public class Test {
public static void main(String[] args) {
Vector v = getV();
Map amtMap = getMixDateAmt(v);
double sum = 0;
Iterator iter = amtMap.keySet().iterator();
while (iter.hasNext()) {
sum += Double.parseDouble((String) amtMap.get(iter.next()));
System.out.println(sum);
}
System.out.println(sum);
}
private static Vector getV() {
// TODO Auto-generated method stub
Vector vector = new Vector();
Map<String, String> map1 = new HashMap<String, String>();
Map<String, String> map2 = new HashMap<String, String>();
Map<String, String> map3 = new HashMap<String, String>();
Map<String, String> map4 = new HashMap<String, String>();
Map<String, String> map5 = new HashMap<String, String>();
map1.put("seqno", "0");
map1.put("amt", "1000");
map1.put("id", "1");
map1.put("date", " 20101010");
public class Test {
public static void main(String[] args) {
Vector v = getV();
Map amtMap = getMixDateAmt(v);
double sum = 0;
Iterator iter = amtMap.keySet().iterator();
while (iter.hasNext()) {
sum += Double.parseDouble((String) amtMap.get(iter.next()));
System.out.println(sum);
}
System.out.println(sum);
}
private static Vector getV() {
// TODO Auto-generated method stub
Vector vector = new Vector();
Map<String, String> map1 = new HashMap<String, String>();
Map<String, String> map2 = new HashMap<String, String>();
Map<String, String> map3 = new HashMap<String, String>();
Map<String, String> map4 = new HashMap<String, String>();
Map<String, String> map5 = new HashMap<String, String>();
map1.put("seqno", "0");
map1.put("amt", "1000");
map1.put("id", "1");
map1.put("date", " 20101010");