American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro to Java – Joel

July 22 @ 5:00 pm - 6:00 pm

Today we did:
  1. We continued with methods.

 

Homework:
  1. Make new file called July22_Magic8BallUsingMethods
  2. Make a list of the magic 8 ball answers outside of any method and call it “response”.  You can also make the Scanner and Random objects outside any method too.
  3. Just like last lesson, make a run method so that the code will primarily be there.
  4. Make a method that gets input from the user and returns it, similar to the lesson.
  5. Similar to last lesson, make a provide response method that gets the random index, and using that random index, get the random answer from the “response” list. Then print it inside this method.

Details

Date:
July 22
Time:
5:00 pm - 6:00 pm