We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package Cwh; import java.util.Scanner;
public class examplenumber5 {
public static void main(String[] args) { System.out.println("enter the integer value"); Scanner sc = new Scanner(System.in);
System.out.println(sc hasNextInt()); } } In above code hasNextInt is not working,it shows an error while running this code please solve it for me....!
The text was updated successfully, but these errors were encountered:
It has to be sc.hasNextInt() and not sc hasNetInt()
Sorry, something went wrong.
No branches or pull requests
package Cwh;
import java.util.Scanner;
public class examplenumber5 {
public static void main(String[] args) {
System.out.println("enter the integer value");
Scanner sc = new Scanner(System.in);
System.out.println(sc hasNextInt());
}
}
In above code hasNextInt is not working,it shows an error while running this code please solve it for me....!
The text was updated successfully, but these errors were encountered: