Then SDKMAN! will perform the switch automatically when you enter the directory.
https://sdkman.io/usage/#env-command