Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Automatic typecasting during overlapping assignment (+=, *=, ...) :
sum += Math.pow();
Explicit type casting:
sum = sum + (int) Math.pow();
this is strange. When I write this code:
int sum = Math.pow(1,2);
I will get an error message which says: "Cannot convert from double to int".
But why does your notation ->> sum += Math.pow(); works?
if you rewrite this to -> sum = sum + Math.pow(); <<- it wont work!
Could you please explain?