| Author |
Arrays class
|
Abhi vijay
Ranch Hand
Joined: Sep 16, 2008
Posts: 509
|
|
Can anyone tell me why I am not able to compile this program?
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
|
|
|
Which error do you have ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
Abhi vijay
Ranch Hand
Joined: Sep 16, 2008
Posts: 509
|
|
java:9: cannot find symbol
symbol : method sort(java.lang.String[])
location: class Arrays
Arrays.sort(s);
^
1 error
Tool completed with exit code 1
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24050
|
|
|
You created your own class named "Arrays" at some point. Find it, delete it. Use the Windows Search tool if you need to.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Abhi vijay
Ranch Hand
Joined: Sep 16, 2008
Posts: 509
|
|
Thanks a ton!!
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
|
|
|
Or use java.util.Arrays.sort(s); instead. But you should definitely find the other Arrays class and rename it.
|
 |
 |
|
|
subject: Arrays class
|
|
|