CS计算机代考程序代写 package linear;

package linear;

public class StringNode {
String data;
StringNode next;

public StringNode(String data, StringNode next) {
this.data = data;
this.next = next;
}

/**
* return the string representation of an IntNode object
*/
public String toString() {
return data+””;
}
}