public interface Show{
void area(double x);
}
public class ShowMe implements Show{
public void area(double x){
System.out.println("The area is: " + x);
}
}
public class Main{
public static void main(String args[]){
ShowMe sm = new ShowMe();
sm.area(12.5);
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment