Java shape class not mark passed
My programme all test cases passed. But its not marking as a passed the test. Showing try again. Please any suggestions import java.util.Scanner; abstract class Shape { int width; public abstract void area(); } //your code goes here class Circle extends Shape{ Circle (int width ){this.width =width;} public void area (){ double area = width * width * Math.PI; System.out.println(area ); } } class Square extends Shape{ Square (int width){ this.width =width; } public void area(){ int area = width * width; System .out.println(area); } } public class Program { public static void main(String[ ] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); Square a = new Square (x); Circle b = new Circle(y); a.area(); b.area(); } }