diff options
Diffstat (limited to 'tests/BugTok.java')
-rw-r--r-- | tests/BugTok.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/BugTok.java b/tests/BugTok.java index 004ac8b..0bfca0d 100644 --- a/tests/BugTok.java +++ b/tests/BugTok.java @@ -14,7 +14,7 @@ class BugTok { public static String[] decoupe(String s,String sep) { int index=0, last=0, length=s.length(); - Vector v = new Vector(); + Vector<String> v = new Vector<String>(); if (length!=0) while (true) { index=s.indexOf(sep,last); if (index==-1) { @@ -41,9 +41,9 @@ class BugTok { } public static void main(String[] arg) { - doprint(decoupe("ils ont changé ma chanson"," ")) ; - doprint(decoupe(" ils ont changé ma chanson"," ")) ; - doprint(decoupe("\u0003ils\u0003ont\u0003\u0003changé ma chanson","\u0003")) ; + doprint(decoupe("ils ont change ma chanson"," ")) ; + doprint(decoupe(" ils ont change ma chanson"," ")) ; + doprint(decoupe("\u0003ils\u0003ont\u0003\u0003change ma chanson","\u0003")) ; doprint(decoupe(""," ")) ; } } |