プロが教える店舗&オフィスのセキュリティ対策術

public class Calc {
public static void main(String[] args) {
int a =10; int b = 2;
int total = tasu(a, b);
int delta = hiku(a, b);
System.out.println("足すと" + total + "、引くと" + delta);
}
public static int tasu(int a, int b) {
return (a + b);
}
public static int hiku(int a, int b) {
return (a - b);
}
}
上記のプログラムをコンパイルするとエラーになります。
間違いの箇所が分かりません。どなたか回答をお願いします。

A 回答 (1件)

せめてどんな「エラー」が出るかくらいは書いてもらえないだろうか.

    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!