Not sure what to put in the objects string variable

I am very confused and im pretty sure im doing this the wrong way. This is just a random application that i am making to understand programming a little better so far I have this!

public class Player {
        public void player(String name,String type,int things){
            Scanner in = new Scanner(System.in);
            name = in.nextLine();
            System.out.println("you entered: "+ name);
    }
        public int[] playerMove(int x, int y){
            x = 3;
            y = 2;
            return new int[] {x , y};
        }

        public static void main(String args[]){
            System.out.println("Enter your players name: ");
            Player Devin = new Player(What do i put here?, "class", 3);

        }
}

I put where I am having the problem in the code. Im not sure what to put in the objects variable!


Source: oop

Leave a Reply