Class, Interface, or Enum expected
Hi, I'm brand new to the community and Java. Wondering what it means, do not understand what is wrong. In bold is the part being flagged by BlueJ as incorrect.
/**
* Constructor for objects of class House
*/
public String name()
{
address = "Address";
beds = 0;
owner = "homeOwner";
Thank you for the help!
-SilvioSpeed
Re: Class, Interface, or Enum expected
Nice to see 20 odd people view a topic but don't help. Really dedicated community, wanting to help out the newbies.
Thanks a bunch.
Re: Class, Interface, or Enum expected
Hello SilvioSpeed!
Quote:
Originally Posted by
SilvioSpeed
Nice to see 20 odd people view a topic but don't help. Really dedicated community, wanting to help out the newbies.
Thanks a bunch.
You waited two hours before you post again an offending comment about people not helping you. Everybody here is offering their spare time. What did you do to help them help you? You didn't even read the forum rules before posting. Also have in mind that many are searching for Unanswered threads. By posting again you got excluded from this category.
Anyway please read the forum rules and then provide more information about your problem. My only guess (coming from post#1) is that you have forgotten to close a {, but that is just a guess. Please post the whole code of your class.
Hope this helps.