I do most of programming work on the Windows terminals in my university. However, my computer is a Mac and, for some reason, the javac command throws up an error when I use UserInput methods. Is there anything to install or an alternative command to use to make this compile properly?
A:
Which UserInput methods? There's no UserInput class in JDK 6. Which package were you expecting them to be in?
Jon Skeet
2008-12-26 00:42:53
+1
A:
You are probably using at university a special package UserInput given by your teacher or something like that. If it's the case, then you just need to "install" that package on your mac, or use the java.util.Scanner class to deal with user input.
rogeriopvl
2008-12-26 01:29:41