Commits

Anonymous committed bdd573c

Typo in loop fixed

  • Participants
  • Parent commits 666bafa

Comments (0)

Files changed (4)

+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>outofmemory-app</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

demo/outofmemory.jar

Binary file modified.

src/com/hascode/tutorial/Main.java

 	public static void main(final String... args) {
 		System.out.println("start");
 		List<Integer> numbers = new ArrayList<Integer>();
-		for (int i = 0; i < Integer.MAX_VALUE; i++) { // going to fail
+		for (int i = 0; i <= Integer.MAX_VALUE; i++) { // going to fail
 			numbers.add(i);
 		}
 		System.out.println("stop");