/in/foo.c:1:1: error: unknown type name 'import'
import java.io.IOException;
^~~~~~
/in/foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
import java.io.IOException;
^
/in/foo.c:2:1: error: unknown type name 'import'
import java.util.Scanner;
^~~~~~
/in/foo.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
import java.util.Scanner;
^
/in/foo.c:4:1: error: unknown type name 'public'
public class sum1 {
^~~~~~
/in/foo.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sum1'
public class sum1 {
^~~~