您的位置:首页 > 编程语言

将会改变未来IT世界的十种编程语言

2013-12-16 09:30 288 查看
如果我不告诉你下面的代码里面有什么错:
for(int index = 0; index < 10; index++){
Element e = new Element("type");
String id = "id" + index;
e.setAttribute("id", id);

for(int innerIndex = 0; innerIndex < 5; index++){
Element ie = new Element("url-pattern");
String pattern = "type-url-pattern #" + innerIndex;

ie.setText(pattern);
e.addContent(ie);
}

userType.addContent(e);
}

你能发现为什么会一直出OutOfMemory错么?

粗心,可以让再好的设计都成为空想!
谨以此文,记念我的粗心!
生活如是,粗心不好。

没能发现的兄弟姐妹们在下面留个名!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: