hi im having trouble with something can u checck(try an catch)
in
Programming Questions
•
1 month ago
can u tell me wht im doing wrong in this code
and can u plz give me a solution that will do the same thing that the code.
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);
- }
:D
1