Error:-
Multiple markers at this line
- Syntax error on token ".", @ expected after this token
- Syntax error on token ",", < expected
- Syntax error, insert "SimpleName" to complete
QualifiedName
- Syntax error, insert ")" to complete MethodDeclaration
Code:-
package BasicCalculation;
public class Add {
public static int add(int one, int two){
int temp = one + two;
return temp;
}
public static void main(String []args){
int output = Add.add(3, 3);
int outputnew = Add.add(3, 11);
System.out.println("Output = " + outputnew + " " + output );
}
}
Calling add method defined above here--
package AdvancedCalc;
import BasicCalculation.Add;
public class Percetage {
Add.add(3,3);
}
Please help in resolving this. Using java 1.8