This is it: I'm actually trying to improve my basic knowledge of Java implementing some exercises.
The point is that I want to have a REPL implemented with static methods in a class: it must display a prompt, instructions and then get a value from console, so the programmer should not care about parsing strings and so on. However, I don't want to implement this little REPL in every different exercise I do. I don't want to copy and paste code, neither.
Have I any option? I can program a lot in java, but I don't have a broad knowledge on libraries, files and directories in Java.
The ideal would be use that same class in every project-exercise, but I don't think that's possible, or may be too complex. However, maybe there must be an specific standar way to copy this class in every project, without being naïve by simply copying and pasting code.
Have I any option? Is there a way to create a little library for this purpose?