https://pastein.ru/t/9i

  скопируйте уникальную ссылку для отправки


import java.util.*;

public class ChordLogic {
    class IntVectr2d{
        public int x, y;
        public IntVectr2d(int x, int y) {
            this.x = x;
            this.y = y;
        }


        public String toString() {
            return ( "<" + x + " - " + y + "> " );
        }
    }


    //chordLogic
    public ArrayList<Integer> getChordsNote(String chordName){
        return null;
    }
    public ArrayList<ArrayList<IntVectr2d>> getChordsHypotheticalFingering(ArrayList<Integer> notes){
        ArrayList<ArrayList<IntVectr2d>> ret = new ArrayList<ArrayList<IntVectr2d>>() ;

        return ret;
    } //принимает на вход массив нот (0-11), где (0 - до, 11- си). Возвращает массив струн, в котором хранится массив нот, где <"лад"  , "номер ноты" >
    public void getOptimalChordFingering(ArrayList<ArrayList<IntVectr2d>> hypFingering){

    }

}