I just started learning Java at school for cse142, but I've known a bit of programming so am considerably ahead of the class and have been trying my own little projects. Normally if I run into a problem I just work around it because I figure I just haven't learned that yet, but this one bugs me enough to make a whole thread about it.
I want generate the following input/output at console.
Window size? (x, y) : 250, 200
The 250/200 would be user input, so for example, at first you see
Window size? (x, y) :
and you type "250" and hit enter and then you see
Window size? (x, y) : 250,
and after typing "200" and hitting enter you get
Window size? (x, y) : 250, 200
and then it continues on with the program.
As a second question, I'm wondering if it's possible to have a user input an equation. I was thinking about storing what they type into a string, but that would just be text and would need to be transferred into a Java runnable equation.