# Introduction to Functions

Introduction to Functions: Introduction to Functions: an overview, Practice: The need for functions, Organizing code into functions, Practice: Creating…

Updated: November 16, 2026

1. [Introduction to Functions: an overview](https://www.ask-codey.com/lessons/introduction-to-functions-an-overview) (Novice): When you keep repeating the same lines of code, you can turn them into a function, one reusable block you call by name.
2. [Practice: The need for functions](https://www.ask-codey.com/lessons/introduction-to-functions-practice-the-need-for-functions) (Novice): Print the scores of five football teams by copying and pasting the same code, and see why repeated code is a problem.
3. [Organizing code into functions](https://www.ask-codey.com/lessons/introduction-to-functions-organizing-code-into-functions) (Apprentice): Learn the four parts of a function (name, parameters, return type and body), and how to call one and keep the value it returns.
4. [Practice: Creating Functions](https://www.ask-codey.com/lessons/introduction-to-functions-practice-creating-functions) (Apprentice): Replace the copied team-score code with one displayTeamScores function that takes each team's rank, name and scores as parameters.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/introduction-to-functions
