- This event has passed.
5 PM – Intro to Java – Joel
July 22 @ 5:00 pm - 6:00 pm
Today we did:
- We continued with methods.
Homework:
- Make new file called July22_Magic8BallUsingMethods
- 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.
- Just like last lesson, make a run method so that the code will primarily be there.
- Make a method that gets input from the user and returns it, similar to the lesson.
- 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.