Hello! Im a java noob and I need to create a program that determines whether the input is an integer or not , can anyone help me out? thanks in advance! btw I have to use Scanner from java.util. , I have no idea on how to check if its an integer or not. Before, I was using C and in C there's a function called isnum() but since Im new at java I have no idea what to do.
any help is greatly appreciated :)