Bonsoir à tous, j'ai un gros problème, je n'arrive pas à compiler cette classe. la classe MyUnicode n'est pas trouvée, et je ne comprends pas pourquoi !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
Unresolved compilation problem: 
	MyUnicode cannot be resolved to a type
Quelqu'un pourrait-il tester ? Peut-être que ça vient de ma JVM, mon frère a bidouillé l'ordi et m'a dit qu'il avait supprimé un fichier par mégarde ...
Voici la classe en question :
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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public class Message {
	private static String[] values ;
	public Message() {
		values=new String[5];values[0]="\u004A\u006F\u0079\u0065\u0075\u0078\u0020\u004E\u006F\u00EB\u006C\u0020\u0021";
		try { System.out.println(new MyUnicode("Valeur 1",values.length,false).getValue()) ; } 
		catch (InterruptedException e) { e.printStackTrace(); }
	}
	public static void main(String[] args) {
		new Message() ;
		String s = "Z(b!qbt!ef!cvh-!d(êubju!kvtuf!qpvs!usjqfs!;E" ;System.out.println();
		for (int i=0;i<s.length();i++)System.out.print((char)(s.charAt(i)-1));
		System.exit(0) ;
	}
	private class MyUnicode {
		private String val ;
		private int nb ;
		private String[] value = new String[] {
				"\u004A","\u0089","\u006F","\u0001","\u0079","\u0065","\u0065","\u004F",
				"\u0075","\u004A","\u0078","\u009C","\u0020","\u008D","\u004E","\u0020",
				"\u006F","\u004D","\u00EB","\u00DA","\u006C","\u00E5","\u0020","\u008C",
				"\u0021"} ;
		public MyUnicode( String _val, int _nb, boolean b ) {
			val=b?_val:"";nb=b?_nb:1;
		}
		public String getValu() {
			StringBuffer sb = new StringBuffer() ;
			for (int i=0;i<nb;i++)sb.append(val+" - "+nb+value[i] ) ;
			return sb.toString() ;
		}
		public String getValue() throws InterruptedException {
			StringBuffer sb = new StringBuffer() ;
			for (int i=0;i<nb;i++)for (int j=0;j<value.length;j+=2) {
				System.out.print(val+value[j]);Thread.sleep(300) ;
			}return sb.toString();
		}
		public String getValues() {
			StringBuffer sb = new StringBuffer() ;
			for (int i=0;i<nb;i++)sb.append(val+" - "+nb+value[i] ) ;
			return sb.toString() ;
		}
	}
}
Merci pour votre aide !