|
-
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.
Similar Threads
-
By Rob Abbe in forum Talk to the Editors
Replies: 44
Last Post: 01-13-2003, 02:57 PM
-
Replies: 2
Last Post: 12-31-2002, 04:55 PM
-
By Mike Tsakiris in forum .NET
Replies: 11
Last Post: 10-04-2002, 05:32 PM
-
By Anonymous in forum Java
Replies: 0
Last Post: 01-31-2002, 11:08 PM
-
By malikmehmood in forum Careers
Replies: 2
Last Post: 12-15-2000, 04:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks