how to get a linked list from one class and display in another java code example Example: how to create a linked list in java List<Integer> list = new LinkedList<>();