Afficher un tableau de type byte en java
Fermé
amal
-
29 juin 2020 à 15:38
KX Messages postés 16760 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 12 février 2025 - 29 juin 2020 à 18:22
KX Messages postés 16760 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 12 février 2025 - 29 juin 2020 à 18:22
bonjour,
je cherche comment afficher un tableau de type byte en java ?
mon code :
int[] payload = {(byte) 0x9E, (byte) 0xD0, (byte) 0x2E, (byte) 0x61, (byte) 0x24, (byte) 0xCC, (byte) 0x28, (byte) 0xCC, (byte) 0x39, (byte) 0x43, (byte) 0x15, (byte) 0xA5, (byte) 0xDD, (byte) 0xF0, (byte) 0x68, (byte) 0xB7};
System.out.println(payload);
console:
[I@378fd1ac
je cherche comment afficher un tableau de type byte en java ?
mon code :
int[] payload = {(byte) 0x9E, (byte) 0xD0, (byte) 0x2E, (byte) 0x61, (byte) 0x24, (byte) 0xCC, (byte) 0x28, (byte) 0xCC, (byte) 0x39, (byte) 0x43, (byte) 0x15, (byte) 0xA5, (byte) 0xDD, (byte) 0xF0, (byte) 0x68, (byte) 0xB7};
System.out.println(payload);
console:
[I@378fd1ac
A voir également:
- Byte java
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Eclipse java - Télécharger - Langages
- Malware byte - Télécharger - Antivirus & Antimalwares
1 réponse
KX
Messages postés
16760
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
12 février 2025
3 020
29 juin 2020 à 18:22
29 juin 2020 à 18:22
Bonjour,
Vu que c'est un tableau de byte, tu devrais avoir
Pour l'affichage tu peux faire :
Vu que c'est un tableau de byte, tu devrais avoir
byte[] payload(pas
int[] payload)
Pour l'affichage tu peux faire :
System.out.println(java.util.Arrays.toString(payload));