Les fichier en java
Résolu/Fermé
mk
-
21 avril 2015 à 20:58
manelkhen Messages postés 1 Date d'inscription mardi 21 avril 2015 Statut Membre Dernière intervention 21 avril 2015 - 21 avril 2015 à 22:22
manelkhen Messages postés 1 Date d'inscription mardi 21 avril 2015 Statut Membre Dernière intervention 21 avril 2015 - 21 avril 2015 à 22:22
A voir également:
- Les fichier en java
- Fichier rar - Guide
- Fichier host - Guide
- Téléchargez cette archive (dossier compressé). en extraire tous les fichiers dans un dossier local. quel fichier contient l’expression trouverpix ? ✓ - Forum Windows
- Fichier iso - Guide
- Jeux java itel ✓ - Forum Jeux vidéo
1 réponse
KX
Messages postés
16668
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
17 mars 2023
3 005
21 avril 2015 à 21:15
21 avril 2015 à 21:15
Bonjour,
Bien sûr que c'est possible que ce soit un entier, un String ou n'importe quoi d'autre. Exemple :
Bien sûr que c'est possible que ce soit un entier, un String ou n'importe quoi d'autre. Exemple :
import java.io.IOException;
import java.io.PrintWriter;
public class Test{
public static void main(String[] args) throws IOException {
int[] tab = {1,2,3,4,5};
PrintWriter writer = new PrintWriter("C:/test.txt");
for (int n : tab)
writer.println(n);
writer.close();
}
}
21 avril 2015 à 22:22