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
- Jeux java itel ✓ - Forum Jeux vidéo
- Java runtime - Télécharger - Langages
- Java apk - Télécharger - Langages
- Scanf en java ✓ - Forum Java
- Java heap space ✓ - Forum Java
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