seems like I just have trouble getting the equation written down but im dealing with this question :
Write a program that prompts the user to enter the side of a hexagon and displays its area. The formula for computing the area of a hexagon is
A=area , a=side length
Here is what I have so far
import java.util.Scanner;
public class Areahexagon
{
public static void main(String [] args)
{
double s;
Scanner sid = new Scanner(System.in);
System.out.println("Enter side's number for hexagons area");
s = sid.nextDouble();
System.out.println("The area is ");
double area = ((Math.sqrt(3/3) / 2) + Math.Pow 2);
System.out.println(distance);
}
}