Austin B.

asked • 09/13/19

How to allow users to input their own data.

I was taught a way to allow users to put in their own input instead of giving them a set variable. So instead of giving a user the set name "Sam" they could put "Dan" or "Shrek" etc... However when I put the code in it pops up as an error. The code for reference is DataIn.readln(); If someone can help me understand what he did and how to either replicate or fix this mysterious problem. Or if there is a better way to do whole thing then I am happy to learn. I remember BufferedReader being a part of this however I have no idea where this comes into play.

1 Expert Answer


Patrick B. answered • 09/13/19

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.