Be Careful while using Scanner class!

Channel:
Subscribers:
1,540
Published on ● Video Link: https://www.youtube.com/watch?v=C_m7vA93oCs



Duration: 4:07
74 views
8


Be Careful while using Scanner class!

When we use nextInt() or nextFloat() or nextDouble(), nextLine() in a certain order, the program doesn't wait for us to enter the string value. In this video, I have shown how we can rectify this error.

#error #java







Tags:
scanner class error
input error in scanner class
scanner class error in java