Bonjour,

En compilant mon programme, j'ai le message suivant;

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error on token "(", new expected after this token
at Byteread.main(Byteread.java:10)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.io.*;
public class Byteread 
{
 public static void main(String args[])throws IOException
 {
     int i;
     FileInputStream fin=new FileInputStream("c:\\input.text");
     do
     {
         fin.read((byte[i]));
         System.out.println((char)i);
     }
     while(i!=-1);
     fin.close();
     fin=null;
 }
}
Quelqu'un saurait-il m'indiquer d'où vient le problème ?

Merci d'avance pour votre aide.