Re: and statement for a for loop
So you want to do a linear search through the ArrayList to search for 2 String values. There's no need to code an explicit loop to search through the List since the code is already given to you in the form of indexOf():
Code:
int uytPos = arr.indexOf("uyt");
int HostClientMNCPos = arr.indexOf("HostingClientMNC");
if (uytPos > 0) System.out.println(arr.get(uytPos));
else .....;
if (HostClientMNCPos > 0) System.out.println(arr.get(HostClientMNCPos));
else .....;
Hungarian notation, reinterpreted? http://www.joelonsoftware.com/articles/Wrong.html