fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.lang.*;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. Character.toChars(-1);
  11. }
  12. }
Runtime error #stdin #stdout #stderr 0.07s 380160KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "main" java.lang.IllegalArgumentException
	at java.lang.Character.toChars(Character.java:4982)
	at Ideone.main(Main.java:10)