error: cannot find symbol Scanner SOLVED in Java

error: cannot find symbol Scanner SOLVED in Java


error: cannot find symbol Scanner SOLVED in Java

How to solve error cannot find symbol scanner in java is shown


Content

0.3 -> hey everyone in this video I will be showing  you how to solve the error cannot find symbol  
5.76 -> scanner in Java so let's get started so here I  am having a simple program which basically just  
11.46 -> inputs a string and displays its length so the  main reason why we are getting this error is that  
16.92 -> we have forgotten to import scanner from java.util  class so just go to the top above your class name  
24.96 -> and you're going to type import java dot  and you'll be having the util package  
34.08 -> util and don't put asterisk just import  scanner so it's going to be capital s  
39.18 -> and we'll be having the Scanner that's it it's  import java.util.Scanner be like careful with  
45.42 -> the case of the letters Scanner s is capital  and java and u it's small letters so just save  
52.38 -> it really important thing save it Ctrl s to  save and let me just now go and again compile
63.06 -> so this time you can see I'm not getting  any errors so if I just now run it yeah
70.92 -> yeah I will be getting the output as well  so I hope you have solved your error and  
75.24 -> mine is a programming Channel I have done  many videos in Java C C plus plus node.js  
79.8 -> react.js mongodb MySQL so do check other videos  of my channel subscribe me thanks for watching

Source: https://www.youtube.com/watch?v=IhU_BlP6dB4