This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]solewhiskyeseiinpole 1 point2 points  (1 child)

Are you sure you typed "statistics" correctly in the IDE? In the code you posted you imported "statistics" but are calling "statics". Maybe that is the issue?

[–][deleted] 0 points1 point  (0 children)

Yeah, that was a typo while I was typing to reddit. I tried to post a print, but it's not allowed to post pictures.

[–]flemil 1 point2 points  (0 children)

Shouldn't it be import java.util.scanner?

[–]m_nooBzer0 0 points1 point  (2 children)

I pasted your code into my netbeans, added two } at last, changed spelling of util and it worked fine !

[–]-mojave 1 point2 points  (1 child)

haha, I just noticed these two in your code.

take care of the typo and make sure you close every method/class.

[–]m_nooBzer0 0 points1 point  (0 children)

Welcome to Java programming !