I get an error where I call it telling me that footballTeam2 is already defined in the main method :/
Type: Posts; User: Tonno22
I get an error where I call it telling me that footballTeam2 is already defined in the main method :/
No they do not match, I should make where I call it choice = getMenuChoice(FootballTeam footballTeam1, FootballTeam footballTeam2); ?
I'm still getting an error on my call line though, saying...
I didn't understand the question, and the parameter is the parenthesis in a method name right?
well, not necessarily a method name, but the parenthesis and what they hold
Haha, my bad, mistype there! Could you explain that question in detail? I don't really understand it :/ Sorry, I think I'm calling it incorrectly as well.
Hey guys, really new to java and programming in general here, so bare with me. I'm getting an error here on my choice lines in my getMenuChoice() method, incompatible types because it requires string...
I changed my makechange() method to this,
public String makeChange(int amount) {
while (amount > 0 && amount <=99)
if (amount > 99) {
System.out.println("");
...
Sorry, I've since changed my code, it now looks like this. My build is successful, but is not outputting anything. I'm not sure why,
package changedispenser;
public class ChangeDispenser {
...
Hey guys, could use some help on this program that I'm making.
I'm working on a change dispensing program using a constructor, getters, setters, and a couple of different methods.
So basically,...