« All Events
7 PM – Intro to Java – Sebastian
May 20, 2024 @ 7:00 pm - 8:00 pm
Today We Did
- Reviewed arrays, lists, for loops, for each loops, while loops, and methods
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/tue-6-pm-sebastian-apr-2024 - AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Fill out the following method according to the comment:
/*
1) Create static method called findAverage(List<Integer> numbers)
2) Call findAverage() in MAY20_review.java file's last line
*/
public class JUN3_hw {
___ ___ ___ findAverage(List<Integer> numbers) {
/*
set integer sum variable to 0
for (each n in numbers) {
sum += n;
}
return sum / length of numbers;
*/
}
}
- Call findAverage() in our MAY20_review.java file.