A voir également:
- Ascii & java - urgent svp
- Ascii - Guide
- Jeux java itel ✓ - Forum Jeux vidéo
- Java runtime - Télécharger - Langages
- Java apk - Télécharger - Langages
- \N ascii - Forum Programmation
3 réponses
Jean-François Pillou
Messages postés
18670
Date d'inscription
lundi 15 février 1999
Statut
Webmaster
Dernière intervention
16 février 2023
63 279
14 juin 2001 à 12:00
14 juin 2001 à 12:00
Pourrais-tu donner la réponse STP? :-)
c'est tout con :
//tu mets ton code ascii dans un char
char myCode=92;
System.out.println(myCode); // tu as bien ton antislash
//et apres tu le transforme en string:
String myAntiSlash = new String();
myAntiSlash=myAntiSlash.valueOf(monChar);
System.out.println(myAntiSlash); // tu as toujours ton antislash
//tu mets ton code ascii dans un char
char myCode=92;
System.out.println(myCode); // tu as bien ton antislash
//et apres tu le transforme en string:
String myAntiSlash = new String();
myAntiSlash=myAntiSlash.valueOf(monChar);
System.out.println(myAntiSlash); // tu as toujours ton antislash