Inserting Node at the beginning of a linked list
问题 I have to insert a new Node at the beginning of my linked list. After I switched the Data Packages I try to overwrite the Data of my first Node with the new Data. But if I do that, my Program changes the data-values of my first and second Node. void insert(String iv_name, String iv_name_first, String iv_title, int iv_earning) { if (this.first == null) { this.first = new Node(new Data(iv_name, iv_name_first, iv_title, iv_earning, 0)); } else { Node n = this.first; Data last_n_data = getLast()