Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javac A.java >> out.txt
- A.java:1: error: cannot find symbol
- import javax.sound.midi.*;class A{public static void main(String[] a) throws Exception{int d=new Scanner(System.in).nextInt();Synthesizer b=MidiSystem.getSynthesizer();b.open();MidiChannel c=b.getChannels()[0];c.programChange(116);while(true){Thread.sleep(d/.06);c.noteOff(0);c.noteOn(0,100);}}}
- ^
- symbol: class Scanner
- location: class A
- A.java:1: error: incompatible types: possible lossy conversion from double to long
- import javax.sound.midi.*;class A{public static void main(String[] a) throws Exception{int d=new Scanner(System.in).nextInt();Synthesizer b=MidiSystem.getSynthesizer();b.open();MidiChannel c=b.getChannels()[0];c.programChange(116);while(true){Thread.sleep(d/.06);c.noteOff(0);c.noteOn(0,100);}}}
- ^
- Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
- 2 errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement