- This event has passed.
3:30 PM – Intro to Java – William
October 28 @ 3:30 pm - 4:30 pm
Today We Did
- Learned about Java methods
- Method overloading
- Functions with/without return values
- Create Oct28_MethodsHW.java
- Create a new method convertFromFahrenheitToCelcius. It has one parameter int fahrenheit. Inside the method, it will convert fahrenheit parameter into celcius by using this formula (F − 32) × 5/9 = C . Return the result and print a statement regarding the conversion.
- Create another method
addThreeNumbers()that accepts 3 numbers as arguments and returns their sum. Call the method in the
main()class and print a statement in the form of an equation (e.g. 1 + 2 + 3 = 6).
Upload homework to your assigned Google Drive folders by Friday night.
If you have any questions, please email me at firstname.lastname@example.org.