Hello,
I want to do the following using Maps
- If the value is empty finish ()
- Otherwise if the value deb! = Null and value to finish! = (Null)
-) Else (
For the first line I can not get the evenness, I try equals, compareTo, contains and stupidly == "" but that does not work. I put the code so that you can see the types of each variable.
Any more help on this will be highly appreciated. Right now I am stuck here with my code.Code:Public void tmap(){ for(Iterator i = map.entrySet().ierator(); It.hasNext();) { Entry e = (Entry) i.next(); Object k = e.getKey(); Object v = e.getValue(); for (Iterator j = ((AbstractList <GregorianCalendar>) v).ierator() J.hasNext() ; ) { Interval interval = (Interval) j.next(); String interval = deb.Getstart(); String interval = finn.getFinish(); String d = interval.getJour(); String tm =""; } } }
Bookmarks