What's the error in my program, whenever i run it in eclipse IDE it shows error.
here's my program-
package Yash;
public class Mycalculator
{
public static void main(long a,long b,long c,long d)
{
long s = a+b;
long su = a-c;
long m =a*d;
long j = c/b;
System.out.println(s);
System.out.println(su);
System.out.println(m);
System.out.println(j);
}
}
Answers
Answered by
2
There is no error in the program. I have even tested in BlueJ IDE. it says no error and executes perfectly.
It might be due to the main method call. I guess you must have the java jdk and jre 11.
Blue J uses java 11
Similar questions
Math,
3 months ago
Chemistry,
6 months ago
English,
6 months ago
Social Sciences,
10 months ago
Computer Science,
10 months ago