2 ms·
Main.java:17: error: incompatible types: String cannot be converted to int int z = x + y; >btw, Python: '1' * 3 -> '111' In theory I agree with this but i
by crdoconnor 10y ago
Main.java:17: error: incompatible types: String cannot be converted to int
int z = x + y;
>btw, Python: '1' * 3 -> '111'
In theory I agree with this but in practise I see this so rarely used it barely matters.
- oliverkyss 10y agoSorry, I meant "11" (String), same result as with JS. see here: https://repl.it/Cqeq/0 https://repl.it/Cqeq/0