There are several ways to play Minecraft Java Edition with friends. Here are a few options:
LAN Game: You can play Minecraft APK Java Edition with your friends on the same local area network (LAN). To do this, all players need to be connected to the same network, and one player needs to start a singleplayer game and select the "Open to LAN" option. Other players can then join the game by selecting the multiplayer option and looking for the LAN game in the server list.
Minecraft Realms: Minecraft Realms is a paid subscription service that allows you to play Minecraft Java Edition with friends online. To use Minecraft Realms, you need to create a subscription, invite your friends to join your realm, and start playing together.
Hosting a server: You can also host a Minecraft server yourself and play with friends online. This option requires some technical knowledge, but there are many tutorials and resources available online to help you get started.