Jump to content
  • 0
Sign in to follow this  
Bradevans

[PI] Complexity source compile error

Question

Hey, so i'm new to coding and i have gone to compile my source and i have an error which says this?

[url]http://puu.sh/8qZNc.png[/url]

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0
could anyone help me out or tell me how i could fix this error, thanks.

Share this post


Link to post
Share on other sites
  • 0
The name of the public class within a file has to be the same as the name of that file.

So if your file declares class ItemReplace, it needs to be named ItemReplace.java

Share this post


Link to post
Share on other sites
  • 0
so do i rename the file or rename the public class in the file?
kind of confused,
sorry i'm newb (:

Share this post


Link to post
Share on other sites
  • 0
Hoping it helped. :)

Share this post


Link to post
Share on other sites
  • 0
i'm still stuck with this would appreciate it if someone could explain or show me how to do it.
I have teamviewer.
Thanks :)

Share this post


Link to post
Share on other sites
  • 0
That didn't work?

Share this post


Link to post
Share on other sites
  • 0
how would i fix it? would it be in the economyreset.java file or the itemreplaced.java

Share this post


Link to post
Share on other sites
  • 0
Okay, so in EconomyReset.java ... the class (class is how you define a "human" in an abstract manner, objects are the humans you see in the street. now think how a human exists (class design) and then open your window and see your objects )

ItemReplace is public.. So rename your file EconomyReset.java to ItemReplace.java

Share this post


Link to post
Share on other sites
  • 0
thanks a lot man :)! you realy helped

Share this post


Link to post
Share on other sites
Sign in to follow this  

×