Last active
June 11, 2020 10:51
-
-
Save blefebvre/26115f8bd6f36a465c5add8812d50fd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int count = 1; | |
count = "1"; // Type mismatch: cannot convert from String to int | |
public double total(double price, int count) { | |
return price * count; | |
} | |
this.total(3.99, "10"); | |
// The method total(double, int) in the type PriceController | |
// is not applicable for the arguments (double, String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment