sdut-array1-1 RDMP音乐播放器(II)(一维数组)

package Main;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Mp3 mp3 = new Mp3();
        for(int i=0;i=0;i--){
            songs[i+1] = songs[i];
        }
        songs[0] = temp;
    }
    void three(){
        char temp = songs[0];
        songs[0] = songs[1];
        songs[1] = temp;
    }
    void printSongs(){
        System.out.print(songs[0]);
        for (int i = 1; i < 5; i++) {
            System.out.print(","+songs[i]);
        }
    }
}

你可能感兴趣的:(java)