BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:American Young Coder
X-ORIGINAL-URL:https://www.ayclogic.com
X-WR-CALDESC:Events for American Young Coder
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:20240310T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20241103T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20240513T190000
DTEND;TZID=America/Los_Angeles:20240513T200000
DTSTAMP:20260422T002929
CREATED:20240515T001015Z
LAST-MODIFIED:20240520T145433Z
UID:25109-1715626800-1715630400@www.ayclogic.com
SUMMARY:7 PM – Intro to Java – Sebastian
DESCRIPTION:Today We Did \n\nLearned about Java methods\nLearned about the difference between static and non-static methods by looking back at Python’s “self” parameter we had to put in all our methods inside a class.\nLearned how to generate a random number\nAYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/\nIn case you need anything\, feel free to email me at sebastian@ayclogic.com\n\nHomework\n\nPlease submit your homework into your Google Drive\nHomework: Magic 8 ball\, but this time in Java. I tried to re-explain it below\, but here’s the original Python prompt in case that makes more sense to you (but either way\, we’re doing this in Java!): https://www.ayclogic.com/intro-to-python/magic-8-ball/. \n\nFirst\, create a list containing the following words:“yes”\, “no”\, “maybe”\, “absolutely”\, “I don’t think so”\, “try again later”\, “Cencentrate and ask again”\, “My reply is no”\nHint: You can copy/paste this directly into a method which turns this into a list\, look back at your notes to find it. \n \nNext\, ask for user input using Scanner\nThen create an infinite loop using while loops (same syntax as we’re used to\, but remember to put parenthesis around true!) example:while (true) {\n}\nInside our while loop\, generate a random number and save it into a variable (make sure it has a good name).\nAsk the user to ask you a yes or no question\nTake in user input using scanner and store inside a string (make sure it has a good name).\nIf the user says “stop”\, break out of the while loop using the same keyword as in Python (just “break”).\nOtherwise\, use the random number we previously generated to print out a random element from our list\n\n\nIf everything is working correctly\, your program should act like this: You first make a list with all possible responses\, then ask the user to ask you questions\, allowing the user to stop if they say “stop”\, otherwise you print out a random response from the list we made.
URL:https://www.ayclogic.com/event/6-pm-advanced-python-game-development-sebastian-4/
CATEGORIES:Introduction To Java,Java
END:VEVENT
END:VCALENDAR