I have been trying to find an efficient way to handle input with Java. It seems there are no simple answers.
This is what I have been trying to use:
INPUT
There's an imported file here called ITPInput.java that you compile into the directory with your main .java file. It compiles and so does the main .java file but when I try to run java main.java i get this error:
Exception in main java.lang.NoClassDefFoundError: input
Does anyone know of a way for my programs to accept user input that is somewhat simple?
in pseudocode this is what im trying to do:
print "What is your name?"
input name
print "Hello, " + name
something that is really simple.