American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

10 AM – Intro To Java

July 10, 2021 @ 10:00 am - 11:00 am

Today We Do
  1. We learn more about methods in Java: with and without return value.
  2. We learn about static and non-static methods.
Homework
  1. Copy the codes of main() from May22_IFELSEScanner.java into July10_TellMeYourAgeUsing.java . Just copy up to the end of the if else statement (“You are a senior”) . Run it and make sure it is running properly.
  2. Create applicationLoop() method.
  3. Copy all the code from main() into run() method.
  4. And call the run() from main() and make sure everything is still working. Look at how we did it in the July10_Magic8Ball_Methods_V3.java.
  5. Create a new method, getUserAge(). This method will return an Integer age.
  6. You will move the code that is responsible of asking user’s age from shell from applicationLoop() into getUserAge(). After this call getUserAge() from applicationLoop(). This is very similar in July10_Magic8Ball_Methods_V3.java where we call getUserQuestion() from applicationLoop()

Details

Date:
July 10, 2021
Time:
10:00 am - 11:00 am
Event Categories:
,
Verified by MonsterInsights