Playing sound in java

Hi

I am making a horror text game in java, and I want to play a sound. How can I do this?

I want it so that whenever a function playsound() is put, the sound with play

1 Like