Letters and digits may be drawn from the entire Unicode character set, which supports most writing scripts in use in the world today, including the large sets for Chinese, Japanese, and Korean. This allows programmers to use identifiers in their programs that are written in their native languages.
Donc int é = 0; ça marche !
neil@box neil $ javac Test.java
neil@box neil $ cat Test.java
public class Test {
public static void main(String[] args) {
int é = 0;
char e = 'é';
System.out.println (Character.isJavaIdentifierPart (e));
}
}
neil@box neil $ java Test
true
# Bah
Posté par neil . En réponse au message règles syntaxiques. Évalué à 2.
Dixit http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.(...)
Donc int é = 0; ça marche !