Commit e8e0a90d authored by Torstein's avatar Torstein

En annen tulleendring

parent 3efb1795
......@@ -9,19 +9,19 @@ public class Main {
stack.push("Banan");
stack.push("Kaffe");
while (stack.size() < stack.maxSize())
stack.push("Eple");
// while (stack.size() < stack.maxSize())
// stack.push("Eple");
while( ! stack.isEmpty())
System.out.println(stack.pop());
// while( ! stack.isEmpty())
// System.out.println(stack.pop());
String kaffe = stack.pop();
String banan = stack.pop();
String eple = stack.pop();
// // String ingenting = stack.pop();
//
// System.out.println("Kaffe=" + kaffe);
// System.out.println("Banan=" + banan);
// System.out.println("Eple=" + eple);
System.out.println("Kaffe=" + kaffe);
System.out.println("Banan=" + banan);
System.out.println("Eple=" + eple);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment