tranleduy2000 / javaide

Code editor, java auto complete, java compiler, aapt, dx, zipsigner for Android
GNU General Public License v3.0
475 stars 159 forks source link

Problem while coding #280

Open VivekAmbegaonkar opened 2 years ago

VivekAmbegaonkar commented 2 years ago

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....!

PranavPurwar commented 2 years ago

It has to be sc.hasNextInt() and not sc hasNetInt()