|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi, All!
How do I make java.io.File return the filelist in a specific order? This is the code: File fileDirectory = new File("c:/temp/"); String[] sfilelist = fileDirectory.list(); Now the list(String array) comes in this order: picture1.jpg picture10.jpg picture2.jpg ...but I wan't it to be like this: picture1.jpg picture2.jpg picture10.jpg ...or can I sort the array of string in some way? Thankful for any help. /PsykBryt PS. I'm using Win2000 |
|
#2
|
|||
|
|||
|
hi,
the list is already sorted alphabetically...if u want to change the order then u prob shud write ur own program.... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Getting the filelist ordered by name? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|