Multiply strings?
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
So,i have those :
I want to do something like this :
but i can't.I guess i have to make them float? since my input from the edittexts that get the values in the cant and pret are decimals? How can i do that ? I tried this but it won't let me
| ||||
You need to use Putting this all together:
I strongly suggest that you read Primitive Data Types and Lesson: Numbers and Strings from Oracle's Java Tutorial for more information about using | ||||
It is much typing, and no operators (multiply, add), but | |||
What about this?
| |||
lang-java
.
stackoverflow.comm
No comments:
Post a Comment