Is there any way to make the input from a scanner into an interface?
I am trying to take the input from a user and make it into an interface. Is there any way for me to do that directly from the scanner input? I don't really know how else I would do it. Thanks for the help. My code is
Scanner sc = new Scanner(System.in);
SetInterface target = sc.nextLine();
Is there any way for me to make this string input equal to an interface?