URGENT DEBUTANT JAVA
Fermé
tiseb
-
23 oct. 2001 à 23:01
tl_kiki Messages postés 5 Date d'inscription jeudi 18 octobre 2001 Statut Membre Dernière intervention 8 août 2002 - 24 oct. 2001 à 09:19
tl_kiki Messages postés 5 Date d'inscription jeudi 18 octobre 2001 Statut Membre Dernière intervention 8 août 2002 - 24 oct. 2001 à 09:19
A voir également:
- URGENT DEBUTANT JAVA
- Waptrick java football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Jeux java itel football - Télécharger - Jeux vidéo
- Jeux java itel 5360 - Forum Mobile
- Télécharger jeux java gameloft gratuit - Forum Mobile
1 réponse
tl_kiki
Messages postés
5
Date d'inscription
jeudi 18 octobre 2001
Statut
Membre
Dernière intervention
8 août 2002
24 oct. 2001 à 09:19
24 oct. 2001 à 09:19
un petit exemple.....
public class Toto
{
public static void main(String args[])
{
String machaine = "99";
int monentier;
monentier = Integer.parseInt(machaine);
System.out.println(monentier);
}
}
il faut donc utiliser la methode statique de la classe Integer....
Avec javadoc regarde cette classe Integer, tu peux y trouver des choses interessante
kiki
public class Toto
{
public static void main(String args[])
{
String machaine = "99";
int monentier;
monentier = Integer.parseInt(machaine);
System.out.println(monentier);
}
}
il faut donc utiliser la methode statique de la classe Integer....
Avec javadoc regarde cette classe Integer, tu peux y trouver des choses interessante
kiki