/**
* @Author: DiTian
* @Description: 求两个链表的相交节点
* @Date: Created in 16:49 2021/8/5
*/
public class IntersectionNode {
//节点类
static class LinkedNode{
private String val;
private LinkedNode next;
LinkedNode(String val){
this.val = val;
next = null;
}
public String getVal() {
return val;
}
public void setVal(String val) {
this.val = val;
}
//添加新节点
public void add(String val){
LinkedNode newNode = new LinkedNode(val);
if (this.next == null){
this.next = newNode;
}else{
this.</