package com.bowen.dong; /** * * @author bw * */ public class Test { public static void main(String[] args) { String s1 ="sabc"; String s2 ="sabc"; Test t1 = new Test(); Test t2 = new Test(); if(t1.equals(t2)) { System.out.println("e"); } System.out.println("t1"+t1); System.out.println("t2"+t2); if(s1.equals(s2)) { System.out.println("equals"); } } }
原文地址:https://www.cnblogs.com/sunnybowen/p/9858446.html
时间: 2024-10-30 09:39:53