java中如何把一个不同类型的数据放到list中去    在线等~~~
private  List<MatchedLogRec>  readLog( ) throws  LogsReceiveException, Exception{
		String line = in.readLine();		
		while(line!=null){
			sendConfirm();
		  System.out.println(line);
		}		
		return list;		
	}
这里我读一行String类型的数据,然后要加到list里,list是MatchedLogRec类型的,我该怎么做??
------解决方案--------------------
------解决方案--------------------