|
|
|
|
|
by Zababa
1750 days ago
|
|
About Java vs Python, modern Java would be: import java.util.ArrayList;
var cars = new ArrayList<String>();
Python would be: cars: list[string] = []
The big difference seems to be that ArrayList is not a "default" data structure in Java, but it is in Python. While I like the Python example better, I'm not offended by the modern Java. |
|