Jump to content


This Will Not Build


  • Please log in to reply
2 replies to this topic

#1 AgentFlamingo

AgentFlamingo

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 20 February 2012 - 11:10 PM

Hello. I am using JCreator LE and am wondering why the following will not build:

public class P3-Movies
{
	private String rating,
			id,
			title;
}

I get "error: '{' expected" but am not sure where this opening bracket belongs and why it belongs there. Any ideas?

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 21 February 2012 - 09:59 AM

I don't think you can use a dash in your class name.

#3 AgentFlamingo

AgentFlamingo

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 21 February 2012 - 07:47 PM

Ah, you were right. I missed such a simple thing; thank you very much.