titou:
> titou: serait il possible que l'on me donne le code pour receptionner et pour envoyer un tableau d'entiers svp?
> VOICI MON CODE:
> import java.net.*;
> import java.io.*;
> import java.lang.*;
> import javax.imageio.*;
>
> public class Client2 implements Serializable
> {
> public static void main( String p[])
> {
>
>
> int a0,a1,a2,a3,b,c;
> int tab [] = new int[3];
>
> try
> {
> Socket serveur = new Socket("192.168.1.119",1245);
>
> InputStream entree = serveur.getInputStream();
> OutputStream sortie = serveur.getOutputStream();
> PrintStream psortie = new PrintStream( sortie );
> DataInputStream dentree = new DataInputStream( entree );
>
>
> dentree.readFully(tab,0,3);
> /* dentree.read_any_array(tab,0,3); */
>
> for(c=0;c<3;c++)
> {
> System.out.println("val :"+c+" " +tab[c]);
> }
> serveur.close();
> }
> catch ( UnknownHostException e )
> { System.out.println("Impossible de trouver le destinataire");}
> catch ( IOException e )
> { System.out.println("Impossible de se connecter à la machine"); }
>
>
> }
> }
>
> IL MAFFICHE COMME ERREUR :cannot resolve sympbol
> methode readFylly(int[],int,int);
> location java.io.dataimputStream
> dentree.readFully(atb,0,3)
>
>