Staplers's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 9 (0.04 per day)
- Joined:
- 26-October 12
- Profile Views:
- 77
- Last Active:
Feb 17 2013 08:04 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: ArrayList question
Posted 30 Jan 2013
I'm getting an error, but thanks for your help. -
In Topic: Method Confusion
Posted 2 Dec 2012
Of course haha. I fixed it, the solution wasn't exactly like yours but it would have helped you if you saw the whole code. Thanks! -
In Topic: Method Confusion
Posted 2 Dec 2012
That is actually what I had initially but I thought it was wrong, because I tried to add coins to my purse using the addCoin() method in my tester class and I was getting an error. Unless I am doing it wrong.public class PurseTester { public static void main(String[] args) { Purse[] purseOne = new Purse[5]; Coin dime = new Coin(10, "dime"); Coin dime2 = new Coin(10, "dime"); Coin quarter = new Coin(25, "quarter"); Coin quarter2 = new Coin(25, "quarter"); Coin nickel = new Coin(5, "nickel"); Coin penny = new Coin(1, "penny"); Purse.addCoin(dime); //Here is the error } }
It tells me I cannot make a static reference to a non-static method. -
In Topic: Multiplication Issue
Posted 26 Oct 2012
Never mind I found the solution. -
In Topic: Multiplication Issue
Posted 26 Oct 2012
Thanks, I fixed this issue. However, I ran it again and it still returned 0 coins even though I had two slots similar to each other, that should have multiplied my money entered by 2. I can't seem to find the problem.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
Staplers hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Staplers has no profile comments yet. Why not say hello?