Ad

Tuesday, February 9, 2016

Codecademy Learn Java tutorial walkthrough 8 : Math +,-,*,/



In this exercise 8/12, Codecademy requires you to do some basic arithmetics using Java. Use the plus symbol + for addition, the minus symbol - for subtraction (it's a very short dash like the in the word "half-life"), the asterisk or the multiply symbol * for multiplication, the forward slash or the divide symbol / for division (the backward flash is \). 

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

83 comments:

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  2. Nice post. Very interesting to read. Thank you for Sharing.
    erp software in chennai

    ReplyDelete
  3. It has been just unfathomably liberal with you to give straightforwardly what precisely numerous people would've promoted for an eBook to wind up making some money for their end, basically given that you could have attempted it in the occasion you needed.


    Java Training in Bangalore|
    Java Training in Chennai|
    Java Training in Bangalore|

    ReplyDelete
  4. Hi, This is Ankit from Delhi. I have read your blog and I got some knowledgeable information through this blog. Really useful blog. Keep update your blog.
    http://saptraininginstitutedelhi.in/

    ReplyDelete
  5. Thanks for sharing this unique and informative content which provided me the required information.
    Sap BW Training

    ReplyDelete
  6. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    Java Training in Bangalore

    ReplyDelete
  7. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site. rprogramming training in bangalore

    ReplyDelete
  8. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    big data training in chennai|

    ReplyDelete
  9. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.

    java training in bangalore

    ReplyDelete
  10. Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area. hadoop training in bangalore

    ReplyDelete
  11. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    data science training in chennai

    ReplyDelete
  12. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    oracle training in Bangalore

    ReplyDelete
  13. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site. java training in bangalore

    ReplyDelete
  14. Incredible post. Keep it up. Thank you such a great amount for sharing your profitable blog.. Inventory Audit | Customer Reconciliation

    ReplyDelete
  15. February 23, 2011 at 3:42 pm
    Great article, and some good comments too. I agree that commenting on a comment helps both dialogue and traffic, as does visiting the comment's site, I’ve found several good sites that way.
    Best Graphics DesigningTraining Institute in Chennai | Photoshop Training Institute in Chennai

    ReplyDelete
  16. I am really enjoying reading your well written articles.
    It looks like you spend a lot of effort and time on your blog.
    I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..
    IELTS Coaching in Chennai
    IELTS Classes in Mumbai
    IELTS Training in Chennai
    IELTS Coaching Centre in Chennai
    IELTS Center in Mumbai

    ReplyDelete
  17. I am obliged to you for sharing this piece of information here and updating us with your resourceful guidance. Hope this might benefit many learners. Keep sharing this gainful articles and continue updating us.
    Cloud computing Training
    Cloud computing Training in Chennai
    Cloud computing courses in Chennai
    Cloud Training in Chennai
    Best institute for Cloud computing in Chennai
    Cloud computing Training Chennai

    ReplyDelete
  18. Nice Article,Great experience for me by reading this info.
    thanks for sharing the information with us.keep updating your ideas.
    Java Training center in Bangalore
    Java Courses in Chennai Ambattur
    Java Training in Saidapet
    Java Courses in Sholinganallur

    ReplyDelete
  19. This is an awesome post. Really very informative and creative contents. These concept is a good way to enhance the knowledge. Thank you for this brief explanation and very nice information.
    Data Science Training in Nungambakkam
    Data Science Training in Saidapet
    Data Science Training in Velachery
    Data Science Training in Tambaram
    Data Science Training in Chennai Velachery

    ReplyDelete
  20. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    Salesforce Training in Chennai
    Salesforce crm Training in Chennai
    Salesforce administrator training in chennai
    Salesforce certification Training in Chennai
    Salesforce.com training in chennai

    ReplyDelete
  21. This blog is more effective and it is very much useful for me.
    we need more information please keep update more.
    AWS Training
    AWS Training in Chennai Anna Nagar
    AWS Certification Training in T nagar

    ReplyDelete
  22. It is very excellent blog and useful article thank you for sharing with us, keep posting.

    Ethical Hacking Course
    Ethical Hacking Certification
    Hacking Course
    Learn Ethical Hacking

    ReplyDelete
  23. The provided information’s are very useful to me. It’s a wonderful site for learning web application. Thank you for sharing this wonderful blog.
    PHP Training in Vadapalani
    PHP Training in Chennai
    PHP Classes near me
    PHP Course in Sholinganallur
    PHP Training in Navalur
    PHP Course in Kelambakkam

    ReplyDelete
  24. Bored of sitting at home? Play casino and get paid for it perfect popular online casinos Play and win.

    ReplyDelete
  25. I learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from python training in btm layout experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying instant approval blog commenting sites

    ReplyDelete
  26. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Training in Chennai

    JavaScript Training in Chennai


    ReplyDelete
  27. Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! best wireless cameras

    ReplyDelete
  28. Nice article. I liked very much. All the informations given by you are really helpful for my research. keep on posting your views.
    ccna course in Chennai
    ccna Training in Chennai
    ccna Training institute in Chennai
    ccna institute in Chennai
    Best CCNA Training Institute in Chennai

    ReplyDelete
  29. Great efforts put to publish these kinds of articles that are very useful to know. I’m thoroughly enjoying your blog. And Good comments create great relations. You’re doing an excellent job. Keep it up.

    Magento Development Training Course in Chennai Zuan Education

    Selenium Training Course in Chennai Zuan Education

    ReplyDelete
  30. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science courses

    ReplyDelete
  31. Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome.You can also check my articles as well.

    Data Science In Banglore With Placements
    Data Science Course In Bangalore
    Data Science Training In Bangalore
    Best Data Science Courses In Bangalore
    Data Science Institute In Bangalore

    Thank you..

    ReplyDelete
  32. I was following your blog regularly and this one is very interesting and knowledge attaining. Great effort ahead. you can also reach us for web development company in chennai website design company in chennai

    ReplyDelete
  33. Nice information thanks for sharing it’s very useful. This article gives me so much information.
    AWS Training in Hyderabad
    AWS Course in Hyderabad

    ReplyDelete
  34. Thank you for posting informative insights, I think we have got some more information to share with! Do check out Big data training in chennai and let us know your thoughts. Let’s have great learning!

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. Brilliant Blog! I might want to thank you for the endeavors you have made recorded as a hard copy of this post. I am trusting a similar best work from you later on also. I needed to thank you for these sites! Much obliged for sharing. Incredible sites!
    data science training institute in hyderabad

    ReplyDelete
  37. Really good information and useful content. Thanks for sharing with us. Keep doing update blogs more.
    Data Science Courses in Hyderabad

    ReplyDelete

React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid