Scanner with Enum, Java

Viewed 858

I'm doing an assignment for uni and am stuck on litterelly one line of code.

public static void setKind(SettlementType type) {
        SettlementType t;
        t = scan.nextLine();
        setKind(t = type);

As you can see I am using a scanner to take in the the SettlementType, however, the IDE keeps saying that I need to change SettlementType to String. I'm new to Java and couldn't find a fix if anyone knows could you perhaps walk me through it?

1 Answers
Related