Tuesday, February 9, 2016
Codecademy Learn Java tutorial walkthrough 8 : Math +,-,*,/
In this case, you just have to multiply two whole numbers and store the result in a variable that can hold an integer. And that's exactly what line 4 does
int myNumber = 5 * 6;
Don't forget the semicolon or ; at the end of the line. That's how Java knows a line has ended. Or else it will get confused when trying to execute line 4 and line 5 together and throw a nasty error message. This error message is Codecademy specific and can be confusing. If you included the semicolon correctly but still got this message check if you really multiply two integers and stored it successfully in a variable that int holds integers and the variable is called myNumber.
The error message reads:
Did you multiply two integers?
Remember, integers are whole numbers only.
What's a whole number? 1, 3, 70, but not 3.5
Crypto is very risky. Do you own research. Even news cannot predict the result of volatile assets. Please read our disclaimer before reading...
This review is updated continuously throughout the program. Yay I just joined the Udacity Nanodegree for Digital Marketing! I am such an Uda...
The bogus request from P2PU to hunt for HTML tags in real life has yielded a lot of good thoughts. My first impression was that this is stup...
Can hack schools solve Silicon Valley's talent crunch? The truth about coding bootcamps and the students left behind http://t.co/xXNfqN...