Java - UserInput. * Doesn't work on my Mac

I do most of the Windows terminal programming work at my university. However, my computer is a Mac and for some reason the javac command throws an error when using the UserInput methods. Is there anything to install or an alternative command to compile correctly?

+1


source to share


2 answers


You are probably using a special UserInput package given by your teacher or something like that at university. If so, then you just need to "install" this package on your Mac or use the java.util.Scanner class to work with user input.



+1


source


What are the UserInput methods? No UserInput class in JDK 6. What package did you expect from them?



+1


source







All Articles