why are we using private keyword and what is its use?
About the fuction made for input
hey @mishikasrvastava
you can use public here no issue
private keyword is part of oops.(leave for now )
A Java private keyword is an access modifier. It can be assigned to variables, methods, and inner classes. It is the most restricted type of access modifier.