AP Computer Science A
Showcase

AP CS A · Java
Triad
Triad is my desktop app that puts Spotify, SoundCloud and YouTube Music behind one player. For this showcase I rebuilt its core logic in Java: searching all three services at once, pausing the others when one starts, cross-service playlists, and favorites.
- Language
- Java
- Original app
- C++
- Classes
- 11
- Runs in
- Console
Code
Cross-service autopause
public void play(Track track) { MusicService target = track.getService(); pauseAllExcept(target); target.play(track); current = track; history.add(0, track);}private void pauseAllExcept(MusicService active) { for (MusicService service : services) { if (service != active && service.isPlaying()) { service.pause(); events.add(service.getName() + " paused"); } }}How it works
Two or three sentences on how this part works, in my own words, will go here.
Course concepts
Course concepts
- Classes & objects
- Track, Player, Playlist, Library
- Interfaces & inheritance
- MusicService → StreamingService → Spotify, SoundCloud, YouTube Music
- Polymorphism
- each service describes playback its own way
- ArrayList
- catalogs, search results, history, playlist
- Searching
- one query across all three services
- Recursion & sorting
- merge sort for results and favorites
Reflection
Portrait of a Graduate
The reflection will appear here, right below the project, once it is written.