Android Open Source - RandomMusicPlayer File Sort

From Project

Back to project page RandomMusicPlayer.


The source code is released under:

Apache License

If you think the Android project RandomMusicPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.matthew.ahsam.phoenix.randommusicplayer;
//from   w w  w.  j  av a  2s .c  o  m

public class FileSort extends Quicksort<File> {

  protected int compare(File f1, File f2) {
    int cmp = f1.getName().compareTo(f2.getName());
    if (cmp >= 1) {
      return 1;
    } else if (cmp <= -1) {
      return -1;
    } else {
      return 0;
  FileSort (File [] files) {

Java Source Code List