Computer Science, asked by AbelTomy, 10 months ago

Find the error in the given program code:
public class Add {
double sum;
public int getdata(float a float b)
{sum a+b;}
public int inputdata() {
System.out.print((a+b);. }}​

Answers

Answered by avinashmurmu99311
7

Explanation:

variable a,b have been used in second main method so you cant you have to declare it one more

Similar questions