So how do I call SlotCollection properly now in another class?
E.g I have "ground = new SlotCollection();" in another class, what do I need inside the ()?
Type: Posts; User: BadgerWatch
So how do I call SlotCollection properly now in another class?
E.g I have "ground = new SlotCollection();" in another class, what do I need inside the ()?
Oh wow, don't I feel silly now. Thanks!
Ok so, I can't figure out why my code is giving me the error message "Cannot find symbol - class slots"
As far as I can tell I've defined the class haven't I?
public class SlotCollection
{
...
I'm back -_-
When I try to get the toString to return the "name" all it returns is null.
import java.util.Scanner;
public class Game
{
private int maxMoves;
Oh of course. Yeah eventually, once I get the rest of the code up to scratch it is supposed to print out "Jack(0) #(1) @(2) %(3) $(4) Treasure/6\(5)" to show the player what the game situation is.
...
Ok, that makes sense. If I remove that first line of code what do I need to change the "game1.toString(); line to for the method to actually run? That was where the static and non-static issues come...
Ok, in this assignment I have to write the code for a game that involves picking up and putting down stones in the right combination in order to unlock the treasure chest.
We've been advised that...