for(int i = 0; i < program.size(); i++)
if(program.get(i).contains(remp))
with the coding above, i can search and display all string in my arraylist that contains "hit2080".
for example
HIT2080___Introduction to Programming___ALL___Core___NULL___NULL
HIT1307___Internet Technologies___ALL___Core___NULL___HIT2080
but i just want to search and display the first token that contains string "hit2080". Is there any way to get the first token?