Update generics.md

First example lacks an variable name for the list of strings.
This commit is contained in:
Georg Göring
2020-07-20 20:33:42 -04:00
committed by Jean-Philippe Sirois
parent bc458fd11a
commit f51747e734
@@ -16,7 +16,7 @@ Here's an example where Java uses generics.
```java
class Main {
public static void main(String[] args) {
List<String> = new ArrayList<String>();
List<String> stringList = new ArrayList<String>();
}
}
```