I'm new to programming in Java and previously only programmed in Python. I have to write a class that doesn't include a constructor but instead has a method that "configures" the class object. So as I understand it, the class object is created as an object with no content and then its content is set by the configure method. An array is passed into the configure method, but when I try to set the class object equal to the array it says it's a type mismatch - I either need to change the class object to an array or the array to a class object, which from what I understand is undefined at that point. What is the class object? How can I make it an array without a constructor? I'm so confused and there seems to be little reference material for this situation online.
// UPDATE //
Here's the configure method per your requests.
I know you don't want English, but it's hard to explain just with a few lines of code - it's part of a larger program that finds the most efficient path across a map. There's a GUI Interface that operates through MapState that executes methods from BasicMapState and MapSolver that executes methods from BasicMapSolver. givenState is an array representing all the map tiles, with a 1 in the tile where the solver is currently located.
I would ideally like to store the givenState array and a parent move (what direction the solver chose to get to the givenState) as attributes of the MapState class object, but I'm lost. Please help.
public class BasicMapState implements MapState {
@Override
public void configureState(int[] givenState) {
MapState current = givenState
}