Using a method of a class is a two step process.
First define an instance of the class
Then call one of its methods.
int fnum= new Scanner(System.in);
The new statement returns an instance of...
Type: Posts; User: Norm
Using a method of a class is a two step process.
First define an instance of the class
Then call one of its methods.
int fnum= new Scanner(System.in);
The new statement returns an instance of...
Use a method of the Scanner class to read in the number the user enters.