As well as removing the extra ", you'll need to put brackets around the calculation ie
System.out.println("The equation is: "+(a.b^2 + b.x+c));
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: keang Search: Search took 0.07 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |