can not resolve method setText(java.lang.String[])- Android Studio -
i don't know why getting error in android studio, quite simple command executing. code provided below. appreciated. getting error in last line of code.
string[] sadthought = {"a", "sad", "thought"}; string[] sadrandom ={(sadthought[new random().nextint(sadthought.length)])}; tvsad.settext(sadrandom);
simply use
tvsad.settext(sadthought[new random().nextint(sadthought.length)]);
Comments
Post a Comment