Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2008, 03:32 AM
Member
 
Join Date: Feb 2008
Posts: 1
yacoub can only hope to improve
need help please!!!
can any one tell me how to start this please.

Now you will do one from scratch. Define a new object called Player which will represent a person in a game environment. Players should have at least these attributes: name (a String), location( a java.awt.Point object) and direction (an int). Set up appropriate constructors, get/set methods and toString() method. Finally, create a test program called PlayerTestProgram that creates three players and displays them (Perhaps start by saving the CustomerTestProgram.java as PlayerTestProgram.java and then modify the code).
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-16-2008, 04:46 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
can any one tell me how to start this please.
No.

Well, okay- actually I will- can you read and understand English? How about Java- do you know any Java? Did you absolutely forget to read what you posted?? Otherwise, everything you need is in your post! Get a beginning book on Java if you're new.

This is your homework. If you don't want to do it- that's on you, but I'm sure not going to do it for you. What do you think this is? the Homework Forums? Get a book, read Sun's tutorials and use Google. Help yourself before we can help you.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 05:25 AM
Member
 
Join Date: Jun 2008
Posts: 22
ferranb is on a distinguished road
A little help:

class Player
{

}

;-)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-14-2008, 05:31 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 771
Fubarable is on a distinguished road
I agree with the others. Do some reading, make an attempt first before giving up and coming here. Otherwise you will never learn.

Good luck.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 12:41 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org