473,322 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

inned help with <identifier> expected

1
Hi I'm having <identifier> expected error when i compile the following code in the test application in java.

Player player = new Player("Red Guy", Color.red, new Point(100,100), 0);
player.setSpeed(10);
player.setDirection(0);
g.add(player);

Ball ball = new Ball(new Point(100,100));
ball.setSpeed(10);
ball.setDirection(0);
g.add(ball);

player.update();
player.update();
player.update();
ball.update();
ball.update();
ball.update();

Can anyone help me with this error asap coz this is a first time im in this site and i know no one to help me with.
Thanks in advance
Nov 23 '07 #1
1 1912
r035198x
13,262 8TB
Hi I'm having <identifier> expected error when i compile the following code in the test application in java.

Player player = new Player("Red Guy", Color.red, new Point(100,100), 0);
player.setSpeed(10);
player.setDirection(0);
g.add(player);

Ball ball = new Ball(new Point(100,100));
ball.setSpeed(10);
ball.setDirection(0);
g.add(ball);

player.update();
player.update();
player.update();
ball.update();
ball.update();
ball.update();

Can anyone help me with this error asap coz this is a first time im in this site and i know no one to help me with.
Thanks in advance
If you look at your error message you'll see the line number where the error was found. Look at it and see if you can find something wrong otherwise post that line.
Nov 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: don | last post by:
hello all, msdn says this about using a dotnet windows control library in activex environment... You have to write one relatively small piece of code to make your .NET control accessible to...
3
by: Mister.programmer | last post by:
Hi, I can't compile anything with vbc, so i am asking for help please. I have a file helloworld.aspx written in asp.net using vb, here it is: <script runat="server" language="vb">...
7
by: Tony Tone | last post by:
I am having trouble resolving this issue: Server Error in '/test' Application. -------------------------------------------------------------------------------- Compilation Error Description:...
0
by: jobo | last post by:
Hello, I'm trying to test out a DataList I made but I'm getting a bunch of errors that say "Expected class, delegate, enum, interface, or struct" Visual Studio says that those errors are...
27
by: SamJs | last post by:
WITH (this) { a = 5 } I'm finding that this.a = 5 will come from this expression. I would have thought that the search for a would come up undefined and leave it at that. Is JavaScript...
4
by: CodeTilYaDrop | last post by:
I am still pretty new to programming, and I sometimes can not figure something out. I am getting an error with this line in my program: Public void count_syllables(int count_syllables) I get...
2
by: camzgon121 | last post by:
Hi guys, I have this code and when I try to compile and run it gives me an <identifier> expected error. The code with the irrelevant parts taken out. package ACCOUNT; import...
0
by: Gordon Burditt | last post by:
>----------------------------- 8< ---------------------------------- Not if you include <string.h>, in which case the second paragraph above is an issue. Otherwise, it's OK. It's OK, but I...
3
oll3i
by: oll3i | last post by:
package ejb; import javax.ejb.EJBObject; import java.rmi.RemoteException; import java.sql.Connection; import java.util.Map; public interface InterfaceRemote extends EJBObject { public Map...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.