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;
Type: Posts; User: BadgerWatch
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...