String bip = "bip.mp3"; Media hit = new Media(bip); MediaPlayer mediaPlayer = new MediaPlayer(hit); mediaPlayer.play();
import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer;