No, this isn't the correct way. You should assign what the toString() method returns to the String you created (str). You can find many examples if you Google it. Here is one of them.
Type: Posts; User: andreas90
No, this isn't the correct way. You should assign what the toString() method returns to the String you created (str). You can find many examples if you Google it. Here is one of them.
Hello YourCrazyFriend !
There is a toString(double d) method in the Double class.
But since you want to compare the String you will create with another("stop") in the if statement, you have to...