类型转换异常!Element element = (Element)node.item(j);加星号处为错误地方!运行时老报类型转换异常!public class Test { public static void main(String[] args) throws Exception { DocumentBuilderFactory dbf=DocumentBuilderFac
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 11:20:29
类型转换异常!Element element = (Element)node.item(j);加星号处为错误地方!运行时老报类型转换异常!public class Test { public static void main(String[] args) throws Exception { DocumentBuilderFactory dbf=DocumentBuilderFac
类型转换异常!Element element = (Element)node.item(j);
加星号处为错误地方!运行时老报类型转换异常!
public class Test {
public static void main(String[] args) throws Exception {
DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();;
Document doc =db.parse("phone.xml");
NodeList list =doc.getElementsByTagName("Brand");
for(int i=0;i
类型转换异常!Element element = (Element)node.item(j);加星号处为错误地方!运行时老报类型转换异常!public class Test { public static void main(String[] args) throws Exception { DocumentBuilderFactory dbf=DocumentBuilderFac
for(int j=0;j