public class Demo {
    public static void main(String[] args) {
        int a = 10
        int b= 10
        System.out.println("Sum of both numbers: " + a + b);
    }
}
修复代码，使其能够运行而不产生错误
public class Demo {
    public static void main(String[] args) {
        int a = 10;
        int b = 10;
        System.out.println("两数之和：" + (a + b));
    }
}