String to List
String str = "Hello"; Sting[] strList = str.split(" "); System.out.println("String str to List: " + strList[0]);
String[] to List<String>
String[] name = {"Tom", "Jack"}; List<String> listStr = new ArrayList<String>(); listStr.add(name[0]);
List<Object[]> To String
String to int
int num = Integer.valueOf(rs.getString(1)).intValue; // This function may throw NumberFormatException int num2 = Integer.parseInt(StringName);