We use void return type functions for this. These functions don't have a standard return type and are replaced with void. This means that void functions aren't called to return a value, they are called as statements.
For instance, the following is an example of how a void function is defined:
public static void helloworld(int a){}
You can simply call this method via:
helloworld(3);
Instead of using a variable to store the return value of the function.