Final answer:
To solve this task, create an interface called "Calculate" with two methods, and then implement those methods in the Triangle, Rectangle, and Square classes to calculate and print the areas of the respective shapes.
Step-by-step explanation:
In Java, you can create an interface called "Calculate" and declare two methods within it: "calculateArea()" and "getSides()". These methods will be implemented by three different classes: Triangle, Rectangle, and Square. In each of these classes, you can use the implemented methods to calculate and print the area of the shape and also print the number of sides for that shape.