Ajouter un commentaire

wiss20000
[résolu]erreur dans mon code "java.lang.NullPointerExce

j'ai une erreur de compilation dans mon code
voici une partie

              String convS;
	 float convf;
	 float [] tabkpi;
........
				 convS=kp.getvaleur().toString();
				 convf= Float.valueOf(convS).floatValue();
				 tabkpi[y]= convf ;

avec "kp.getvaleur()" est de type Object
en fait je veux convertir une variable de type Object vers le type float :(

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 K  K  PPPP   M   M   QQQ    DDD  
K K P P MM MM Q Q D D
KK PPPP M M M Q Q D D
K K P M M Q QQ D D
K K P M M QQQQ DDD
Q