Cannot find symbol symbol

mahdi2530 Messages postés 15 Date d'inscription mardi 24 avril 2012 Statut Membre Dernière intervention 7 mai 2013 - 7 mai 2013 à 16:30
Twinuts Messages postés 5375 Date d'inscription dimanche 4 mai 2003 Statut Modérateur Dernière intervention 14 juin 2023 - 12 mai 2013 à 14:33
hi je face un pb dans mon code comment corrigé
public void writeOnBUS() {

// Préparation de la chaîne
String temp = "";
temp += adresse;
temp += commande;
if (isInfo()) temp += donnees; // Trames d'info?
for (int i = 0; i<FCS_LENGTH; i++) temp += "0"; // Initialisation FCS

// Évaluation du FCS
fcs = mecanicFCS(temp);
temp = temp.substring(0,temp.length()-FCS_LENGTH) + fcs;

// Construction du stream (stuffing)
stream = "";
stream += FANION;
stream += stuff(temp,5);
stream += FANION;

// Transmission
Bus.send(stream);
}
l'erreur est :cannot find symbol
symbol : variable Bus

1 réponse

Twinuts Messages postés 5375 Date d'inscription dimanche 4 mai 2003 Statut Modérateur Dernière intervention 14 juin 2023 111
12 mai 2013 à 14:33
Salut,

Si c'est une variable, il est déclaré Bus ?
Si c'est une classe, elle est importée ?
Si Bus est un classe d'une api externe, le jar est dans le classpath?


-----

"On n'est pas au resto : ici on ne fait pas dans les plats tout cuits ..."

OoWORAoO
0
Rejoignez-nous