---
# System prepended metadata

title: Untitled

---


```java=

https://hackmd.io/xCsrt-Q3SwqOEUAmawCL1g?edit=test&edit2=test2

["edit", "test"]
["edit2", "test2"]

public static void displayQueryString(String url){
    StringBuilder str = new StringBuilder();
    Boolean flag = false;
    for(int i=0;i<url.length();i++){
        if(url.charAt(i) == "?"){
            flag = true;
        }
        if(flag){
            str.append(url.get(i));
        }
    }
    str// "edit=test&edit2=test2"
    
    HashMap<String, String[]> qs = new HashMap<>();
    
    String[] keyValPairs = str.separator('&'); //["edit=test", "edit2=test2", "edit2=test3"]
    for(String str: keyValPairs){
        String[] keyValPairsArr = str.seperator('=');//['edit2','test2'];
        qs.put(keyValPairsArr[0], keyValPairs[1]);
    }
    
    return qs;
    
    
    
}

User
userid,
name,
billingAddress,


order
orderid,
orderItems,
shipping,
userid,

123 1217 "Seatle"
124 1217 "Denver"
125 1217

124 1217 "Aditya"  "Denver"  "75 Saint Alphonsus street" 
125 1217 "Aditya"  "Seatle"  "1200 Massachusettes Ave" 
//edit=test&edit2=test2
//["edit=test", "edit2=test2"]
https://hackmd.io/xCsrt-Q3SwqOEUAmawCL1g?edit=test&edit2=test2&edit=test3


----------------------------------------------------------

public static ArrayList<Integer> displayCommon(ArrayList<Integer> l1, ArayList<Integer> l2){
    
    ArrayList<Integer> result = new ArrayList<>();
    
    for(int i=0;i<l1.size();i++){
        for(int j=0;i<l2.size();j++){
            if(l1.get(i) == l2.get(j)){
                result.add(i);
            }
        }
    }
    return result;
}

public static void displayCommon(ArrayList<Integer> l1, ArayList<Integer> l2){
    
    HashSet<Integer> hs = new HashSet<>();
    
    for(int i=0;i<l1.size();i++){
        hs.add(l1.get(i));
    }
    
    ArrayList<Integer> result = new ArrayList<>();
    
    for(int i=0;i<l2.size();i++){
        if()
    }
    
    
    
}

```