What is wrong in my code,i want output of area of circle in fraction
import java.util.Scanner; abstract class Shape { int width; abstract void area(); } class Circle extends Shape { double pi = 3.14, ar; public Circle(int w){ this.width = w; } @Override public void area() { //super.area(); ar = pi * this.width * this.width; System.out.println("Area of circle:"+ar); } } class Square extends Shape { int ar; public Square(int w){ this.width = w; } @Override public void area() { //super.area (); ar = this.width * this.width; System.out.println("Area of Square :"+ar); } } 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(); } }