Bonjour,

Je ne comprends pas pourquoi mon enum n'est pas bon :

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
public enum TerminalType {
	UN("un"),
	DEUX("deux"),
	TROIS("trois"),
 
	private final String value;
 
	TerminalType(String value) {
		this.value = value;
	}
 
	public String getValue() {
		return this.value;
	}
 
}
Le "private final String value" pose un problème et plus particulièrement "String" qui dit :

Syntax error on token "String", strictfp expected
Une idée ?