Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
String[] sodas = null;
List<String> sodaList = new ArrayList<String>();
sodaList.add("coke");
sodaList.add("pepsi");
sodaList.add("7-up");
sodas = sodaList.toArray(new String);
for( String s : sodas ) {
System.out.println(s);
}
import java.util.List;
import java.util.ArrayList;
You can also try using out to TjavaRow then:
Create Contex (Context.Your_context_Name)
** content is the object the coming from row1 **
Context.Your_context_Name = String.valueOf(row1.content);
Then you can check with print: System.out.print("The string from object is: +Context.Your_context_Name);