How is character entered using Scanner class in java?
Answers
Answered by
0
Using the statement
SC. Next ()
Let ch be the variable to store character then upon asking the user to enter the character...
Ch=SC.next(); will conver the entered info to char n store it in ch.
SC. Next ()
Let ch be the variable to store character then upon asking the user to enter the character...
Ch=SC.next(); will conver the entered info to char n store it in ch.
Similar questions