Whats wrong with my program? Code provided

The function

double TwoThirdPower(double A)

is declared inside

public static void main(String[] Theory)

You need to close the definition of Main first with }

Being careful about indenting braces (or using an editor that does that for you) will help prevent this kind of problem.

Leave a Comment