I don\'t understand my error, and I am very confused!! 1 package javax. sound. s
ID: 3672379 • Letter: I
Question
I don't understand my error, and I am very confused!!
1 package javax. sound. sampled.DataLine 2 import java applet. 3 import java.net 4 public class Audiot 5 public static void main (String[ args) try AudioClip clip Applet. newAudioClip(new URL ("file://Users/carolinehardison/Desktop/EC/FunPiano.wav" 9 clip play 10 11 catch (MalformedURLException murle) f 12 System. out. println (murle); 13 15 Coin. java CSD Audio.iava CSD Compile Messages iGRASP Messages Run I/O Interactions Stop GRASP exec javac g Audio. java Audio. java: 1: error: package javax. sound. sampled. DataLine clashes with class of same name Clear package javax.sound. sampled .DataLine; 1 error Copy ----jGRASP wedge: exit code for process is 1 jGRASP: operation complete Line:2 Col: Code: 105 Top: 1 ovSBLKExplanation / Answer
What i was understand from the given posted error is Audio
class may present in the any one of the given imported packages..
try to rename the class Audio with some other name..
it may resolved the error
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.