# Organizing code into functions

Learn the four parts of a function (name, parameters, return type and body), and how to call one and keep the value it returns.

![Cheat sheet: Organizing code into functions](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c480b617c38a4fb7b1772dfe184053ca.webp)

- Category: Java
- Level: Apprentice
- Tags: java
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/introduction-to-functions-organizing-code-into-functions-cheat-sheet
