179,805 views
3 votes
3 votes
Java question

If the user wants to enter one character what statement you use?

1- next()?

2-next(0)?

3-CharAt(0).

4-next().charAt(0).

User AlphaGoku
by
2.7k points

1 Answer

19 votes
19 votes

Answer:

To be honest why would you want to enter one character. Anyways the answer is option 4

User Markpsmith
by
3.1k points