I shared an account with my friend but I want to kick it out of my account how does it work (java editon) ?!
You can change your password. Then he will be automatically logged out.
That doesn't work, I would recommend you to change the password and not tell your friends again
Change Password
Settings / accounts