American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Java

May 25, 2021 @ 6:00 pm - 7:00 pm

  1. We learned about methods in Java by converting Magic8Ball game into using methods:
    1. Method without return value
    2. Method with return value.
  2. We started May25_TellMeYourAgeMethodsHomework.java
  3. Homework:
    1. Inside May25_TellMeYourAgeMethodsHomework.java do the following
      1. Create run method similar to what we did in May25_Magic8BallUsingMethod.java
      2. Add a forever loop (while true) loop so this program will run forever until user enter “quit”.
      3. Create a method getUserAge() and move logic from run() that ask user for their age. This method needs to return a String which is the age that the user enters.
      4. Call getUserAge() method from the run() method and whatever the return value, check if it is equals to “quit” break from the loop.

Details

Date:
May 25, 2021
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights