I keep getting these two errors.

Timing.java:45: <identifier> expected
Public void double squared(double n)
^
Timing.java:54: <identifier> expected
Public void double exponential(double n)


I can't for the life of me figure out what I am missing. I've been away from Java for about 2 years and I was never really good at it to begin with. Can anyone help?

Public should be "public"

Aha! Figured it would be something small I was missing. Thank you very much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.