mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
Update generics.md
First example lacks an variable name for the list of strings.
This commit is contained in:
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>();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user