Java novice that needs to learn a few things!
Hi, I'm relatively a novice at Java programming, as I've only taken a few programming courses at college, but have been trying to write my own programs on my own for a few months now to get more practice.
There's something that I haven't been able to figure out yet, and it's really making my basic math program tough to finish.
Say I have a basic math function. Say, ((x+2)*3), or anything similar to that. Now, I have this value inputted by the user as a string. How would I be able to code my program, so that the function could be evaluated (using an arbitrary value for x that the user can also input.) I'm sure I'm overlooking something relatively simple, but how would I evaluate a mathmatical function that is originally a string.
I appreciate any help that I can get.