File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Arrays class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Arrays class" Watch "Arrays class" New topic
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: 14687
    
  16

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: 24183
    
  34

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: 14687
    
  16

Or use java.util.Arrays.sort(s); instead. But you should definitely find the other Arrays class and rename it.
 
wood burning stoves
 
subject: Arrays class