Guest User

Untitled

a guest
Jan 30th, 2016
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javac A.java >> out.txt
  2. A.java:1: error: cannot find symbol
  3. 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);}}}
  4. ^
  5. symbol: class Scanner
  6. location: class A
  7. A.java:1: error: incompatible types: possible lossy conversion from double to long
  8. 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);}}}
  9. ^
  10. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  11. 2 errors
RAW Paste Data