Try placing System.out.println after every statement and see where exactly the problem is or if you are good to debug this, try debugging it.
Type: Posts; User: Mr.777
Try placing System.out.println after every statement and see where exactly the problem is or if you are good to debug this, try debugging it.
Do you have understanding of Operators precedence?
As a hint,
* has higher precedence than +. So, it will be calculated before +.
Now look at your program.