Wrote /tmp/tmp_760076604/main.java - 195 bytes (written=195, should be 195) /root/jdk1.8.0_211/bin/javac -source 1.8 -target 1.8 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar -d /tmp/tmp_1599320005 /tmp/tmp_760076604/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/tmp/tmp_760076604/main.java:2: error: class, interface, or enum expected static BufferedImage drawImageOnImage(BufferedImage img, BufferedImage canvas, int x, int y) { ^ /tmp/tmp_760076604/main.java:4: error: class, interface, or enum expected ret canvas; ^ /tmp/tmp_760076604/main.java:5: error: class, interface, or enum expected } ^ 3 errors