After searching on several forums for a while IW as unable to find similar posts, so I was hoping I would be able to get some help. I want to convert a string literal into an operation, however I'm not sure how to start. Here's a (bad) attempt I've made so far
class test { public static void main (String args[]) { String eq1 = "x/2+6"; double eq2 = eq1; // <- want "double eq2 = x/2+6;" System.out.println (eq2); } }