Current location: Hot Scripts Forums » Programming Languages » Everything Java » Can anyone help me with Java


Can anyone help me with Java

Reply
  #1 (permalink)  
Old 04-14-04, 02:57 PM
monkeymam monkeymam is offline
New Member
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Can anyone help me with Java

Hello everyone,

I have recetly be given an assignment on Java and am having trouble doing it as i do not understand it at all. I dont understand Java at all come to that.

I am trying to learn for my self through text books, but am still having trouble with the assignment, IS THERE ANYONE WHO CAN HELP ME, PLEASE......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 02:58 PM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
Please post in the right forum next time.

*Topic Moved*
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-14-04, 03:02 PM
bmw2213 bmw2213 is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Kirksville, MO
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
what all

What all do you need help with? I am in a Java class now, and I possibly could help you out...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 04-15-04, 05:01 PM
monkeymam monkeymam is offline
New Member
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

i have to do the three questions listed on the attached document. Also attched is what i have done so far,ie copied to code given to me,
i now have to do the three questions listed...... and have no idea what it means...
Attached Files
File Type: doc Assignmentdetails3.doc (41.0 KB, 197 views)
File Type: txt PlayerClass.txt (487 Bytes, 407 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 04-26-04, 04:20 AM
bmw2213 bmw2213 is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Kirksville, MO
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
I did all the work for you, but I don't think its a good idea to just tell you how to do everything. So, I went back through and took out all my code and just left the comments.

Quote:
Originally Posted by monkeymam
i have to do the three questions listed on the attached document. Also attched is what i have done so far,ie copied to code given to me,
i now have to do the three questions listed...... and have no idea what it means...
Code:
public class Player {
	//class attributes
	
	public Player(String nameIn, int numberIn, String positionIn) {
	//to construct this player, you need to set the name = nameIn
        //you also have to set number = numberIn
        //position = positionIn
        //set goals = 0  -- remember to define goals in private section
	} //end Player constructor
	
	public void setGoals(int goalsIn)
	{
         //this method will add the int goalsIn to the number of goals currently
	}
	
	public int getNumber()
	{
        //simple return call
	}
	
	public int getGoals()
	{
        //simple return call
	}
	
	public void displayPlayer()
	{
        //this method will display all of the information we have about the player
        //I imagine a simple System.out.println() will work.
	}
	
	//Main only used as a test stub
	
	public static void main()
	{
        //I suggest not having an object passed to a main class
        //set strings for name and position
        //create a new player and call the player constructor
        //call displayPlayer on the player you created
        //call setGoals on the player you created
        // call getGoals on the player you created
	}//end main()

//private section	
private int goals;
	
} // end class player
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
call a VB form from a java application kcatalin_ro Everything Java 2 12-06-10 11:35 PM
We need more java talk rooshine Everything Java 4 05-08-04 11:44 PM
java source code veena vahini Everything Java 1 01-29-04 11:25 AM
Detecting Java Plug-in ZirconChief Everything Java 2 06-10-03 05:37 PM
Detecting Java Plug-in ZirconChief Everything Java 0 06-10-03 01:18 PM


All times are GMT -5. The time now is 01:50 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.