Well, it seems that you're defining the "area_triangle" method inside the "main" method. You'll have to define it outside the main method and then call it inside the main method. Try something like:
<pre>import java.util.Scanner;
public class Area {
public static void main(String[] args) {
Area a=new Area();
System.out.print("Menu");
Scanner input = new Scanner (System.in);
double base=input.nextInt();
double height=input.nextInt();
a.area_triangle(base,height);
}
public static double area_triangle( int base, int height ) {
double area_triangle_1=height*(base/2);
System.out.println(area_triangle_1);
return area_triangle_1;
}
}
Hope this helps.
Cheers.