Bonjour tout le monde,

J'ai un hashmap de type : HashMap<String, HashMap<Set<String>, HashMap<Set<String>, Float>>> rtat ,


Je voulais stocker que les float dans une matrice de cette façon :

exemple : j'ai un hashmap

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
System3.owl
******** Comparaison Classe / Concept **************
[System3.owl={[airbusplaneVTTT, aeroplaneDODY, airplaneAERO]={[aerial tramway, tram, tramway]=0.0, [motorbike]=0.0, [water scooter, scooter]=0.0, [tandem, tandem bicycle]=0.0, [tanker, tankship, oil tanker]=0.0, [ski lift, lift, ski tow]=0.0, [camel]=0.0, [motor, motorcycle]=0.0, [pushchair, baby buggy, stroller]=0.0, [sleigh, sledge]=0.0, [automobile vehicule, automobile, auto]=0.0, [pedal rickshaw]=0.0, [Autogyro]=0.0, [ship, fishing boat]=0.0, [railcar, railroad car]=0.0, [subway, metro, underground]=0.0, [train, railroad train, wagon train]=0.0, [cart, go-cart]=0.0, [ocean liner, liner]=0.0, [ferry, ferryboat]=0.0, [dankey cavalry]=0.0, [racing yacht, yacht]=0.0, [truck, motortruck]=0.0, [jitney]=0.0, [hot air balloon]=0.0, [aircraft carrier, carrier]=0.0, [wheel]=0.0, [tugboat, tug]=0.0, [canoe]=0.0, [tape transport, transport, transportation]=0.0, [passenger vehicule, vehicule]=0.0, [sailplane, glider]=0.0, [van, vanguard]=0.0, [helicopter, military plane, warplane]=0.0, [projectile]=0.0, [sheet]=0.0, [railway, railroad line, railroad]=0.0, [bike, safety bicycle, ordinary bicycle, bicycle]=0.0, [car, sport car, motorcar]=0.0, [airship]=0.0, [hydrofoil]=0.0, [jet, jet plane]=0.0, [airbusplane, plane, airplane, aeroplane]=0.0, [vessel, sailing boat, boat]=0.0, [bus, motorbus, autobus]=0.0, [tricycle, trike, velocipede]=0.0, [taxi, taxicab]=0.0, [horse-drawn-coach, horse, horse cavalry]=0.0, [rocket Alarm Clock, rocket]=0.0}, [autobus]={[aerial tramway, tram, tramway]=0.0, [motorbike]=0.0, [water scooter, scooter]=0.0, [tandem, tandem bicycle]=0.0, [tanker, tankship, oil tanker]=0.0, [ski lift, lift, ski tow]=0.0, [camel]=0.0, [motor, motorcycle]=0.0, [pushchair, baby buggy, stroller]=0.0, [sleigh, sledge]=0.0, [automobile vehicule, automobile, auto]=0.0, [pedal rickshaw]=0.0, [Autogyro]=0.0, [ship, fishing boat]=0.0, [railcar, railroad car]=0.0, [subway, metro, underground]=0.0, [train, railroad train, wagon train]=0.0, [cart, go-cart]=0.0, [ocean liner, liner]=0.0, [ferry, ferryboat]=0.0, [dankey cavalry]=0.0, [racing yacht, yacht]=0.0, [truck, motortruck]=0.0, [jitney]=0.0, [hot air balloon]=0.0, [aircraft carrier, carrier]=0.0, [wheel]=0.0, [tugboat, tug]=0.0, [canoe]=0.0, [tape transport, transport, transportation]=0.0, [passenger vehicule, vehicule]=0.0, [sailplane, glider]=0.0, [van, vanguard]=0.0, [helicopter, military plane, warplane]=0.0, [projectile]=0.0, [sheet]=0.0, [railway, railroad line, railroad]=0.0, [bike, safety bicycle, ordinary bicycle, bicycle]=0.0, [car, sport car, motorcar]=0.0, [airship]=0.0, [hydrofoil]=0.0, [jet, jet plane]=0.0, [airbusplane, plane, airplane, aeroplane]=0.0, [vessel, sailing boat, boat]=0.0, [bus, motorbus, autobus]=0.5, [tricycle, trike, velocipede]=0.0, [taxi, taxicab]=0.0, [horse-drawn-coach, horse, horse cavalry]=0.0, [rocket Alarm Clock, rocket]=0.0}}]
les deux groupes en gras représentent le 2ème hashmap Set<String>. Je veux convertir ce hashmap à une matrice de telle façon que j'aurai à chaque groupe une ligne contenant toutes les valeurs correspondantes (Float) c'est à dire j'aurai ce genre d'affichage :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
 
0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0
 
0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.0	0.5	0.0	0.0

Merci beaucoup de m'aider vraiment je l'ai besoin en urgence.