Program to calculate area and volume of a Tetrahedron | Java Program to Calculate area of tetrahedron ; Utility Function ; Driver code
import java . util . * ; import java . lang . * ; class GFG { public static double area_of_tetrahedron ( int side ) { return ( Math . sqrt ( 3 ) * ( side * side ) ) ; } public static void main ( String [ ] args ) { int side = 3 ; System . out . println ( " Area ▁ of ▁ Tetrahedron ▁ = " + area_of_tetrahedron ( side ) ) ; } }