d-Rickyy-b/MGGVertretungsplan

Program to interfaces, not to implementations

d-Rickyy-b opened this issue · 1 comments

Iterable<String> strings = new ArrayList<>();   // If you just need to iterate
Collection<String> strings = new ArrayList<>(); // If you also need .size() or .stream()
List<String> strings = new ArrayList<>();       // If you also need .get(index)

// Don't declare a specific list implementation
// unless you're sure you need it:
ArrayList<String> strings = new ArrayList<>();  // You don't need this

Source: https://stackoverflow.com/questions/1005073/initialization-of-an-arraylist-in-one-line

The app is no longer of any use, since the actual time table is behind a login now.