Processing Forum
ty for u help
- // note this is just the part of the main code
- //but it also should work alone , like this
- int va = 0;
- int vb = 0;
- int vc = 0;
- HashMap<Integer, HashMap<Integer,Boolean>> edjesMap = new HashMap();
- HashMap<Integer,Boolean> sub = new HashMap();
- try{
- boolean help = sub.get(vb);
- }
- catch(Exception e ){
- e.printStackTrace();
- sub.put(vb,true);
- HashMap<Integer,Boolean> sub1 = new HashMap();
- try{
- sub1 = edjesMap.get(vb);
- sub1.put(va,true);
- }
- catch(Exception w ){
- w.printStackTrace();
- sub1.put(va,true);
- }
- edjesMap.put(vb,sub1);
- }