Was just wondering if there is way to get input from a user through a scanner object and store it as an enum eg. String example = scan.nextLine(); be something like enum example = scan.nextEnum(); Thankyou
Type value = Type.valueOf(scanner.next().toUpperCase());
Type value = Type.values()[scanner.nextInt()];
Help @T1Alpha spread the word by sharing this article on Twitter...