Well,guys here just only show the examply in python. i can not code it in java with the same example.
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option('androidPackage', 'com.android.chrome')
driver = webdriver.Chrome('./chromedriver', options=options)
driver.get('https://google.com')
driver.quit()
any advice
The Java equivalent code will be: