Program to find the area of a Square | Java program to find the area of a square ; function to find the area ; Driver code
class GFG { static int area_fun ( int side ) { int area = side * side ; return area ; } public static void main ( String arg [ ] ) { int side = 4 ; int area = area_fun ( side ) ; System . out . println ( area ) ; } }