47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
Zum nachlesen.
|
|
|
|
Java OOP
|
|
Bro Code - Java Full course for free 2025
|
|
https://www.youtube.com/watch?v=xTtL8E4LzTQ
|
|
|
|
|
|
W3-Schools - Java Encapsulation
|
|
Get and Set
|
|
https://www.w3schools.com/java/java_encapsulation.asp
|
|
|
|
Code Gym - Get and Set
|
|
https://codegym.cc/de/groups/posts/getter-und-setter-in-java
|
|
|
|
Bro Code - How to read a File
|
|
https://www.youtube.com/watch?v=eHjbvgw4hsI
|
|
|
|
|
|
Baeldung - ConcurrentModificationException
|
|
https://www.baeldung.com/java-concurrentmodificationexception
|
|
|
|
Build an Online Shopping Cart System Using OOP in Java - Nakul Mitra
|
|
https://towardsdev.com/build-an-online-shopping-cart-system-using-oop-in-java-e8e5797f8664
|
|
|
|
|
|
Java application grocery ordering logic with OOP
|
|
https://stackoverflow.com/questions/63426789/java-application-grocery-ordering-logic-with-oop
|
|
|
|
Als vorlage für CartPos
|
|
|
|
|
|
isEmpty() W3-Schools
|
|
https://www.w3schools.com/java/ref_string_isempty.asp
|
|
|
|
KI
|
|
Prompt:
|
|
Ich stehe einwenig auf dem Schlauch, wie kann ich meine prodQuantity verändern sodass diese einen neuen wert bekommt?
|
|
public void updateProductQuantity(int prodID,int quantity) {
|
|
for (CartPosition pos : positions) {
|
|
if (quantity <= 0) {
|
|
removeProduct(prodID);
|
|
}
|
|
}
|
|
|
|
}
|
|
|