[JAVA]How to scroll to element by findby... not manual by swipe

I find it at appium doc and i need how to use ? i don’t understand it’s code T T

// setAsVerticalList
// FindElement
MobileElement element = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator(
“new UiScrollable(new UiSelector().scrollable(true)).setAsVerticalList()” +
“.scrollIntoView(new UiSelector().text(“exact_text”))”));

// setAsHorizontalList
// FindElement
MobileElement element = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator(
“new UiScrollable(new UiSelector().scrollable(true)).setAsHorizontalList()” +
“.scrollIntoView(new UiSelector().text(“exact_text”))”));

what not clear? what you tried and error you got? all you need is replace “exact_text” with text you need.