Skip to content

Commit 703d150

Browse files
author
Paulo Henrique Ortolan
committed
Updating for-each statement
1 parent 240e2a8 commit 703d150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/java10/examples/ComplexObjectExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args) {
2424

2525
System.out.println("-[ Bill ]-----------------------------------------------------------");
2626

27-
for(Product product : productList) {
27+
for(var product : productList) {
2828
System.out.println(product.toString());
2929
}
3030

0 commit comments

Comments
 (0)