please any one can explain me this code of region matches program line by line and also the function of region matches.
class regionMatches_T est{
public static void main(String[] args){
String s1= "tsinghua";
String s2="it is TsingHua";
//public boolean regionMatches(i nt toffset,String other,int ooffset,int len)
System.out.prin tln( s1.regionMatche s(0,s2,5,7)) ;
//public boolean regionMatches(b oolean ignoreCase,int toffset, String other, int ooffset,int len)
System.out.prin tln( s1.regionMatche s(true,0,s2,6,7 )) ;
}
}
class regionMatches_T est{
public static void main(String[] args){
String s1= "tsinghua";
String s2="it is TsingHua";
//public boolean regionMatches(i nt toffset,String other,int ooffset,int len)
System.out.prin tln( s1.regionMatche s(0,s2,5,7)) ;
//public boolean regionMatches(b oolean ignoreCase,int toffset, String other, int ooffset,int len)
System.out.prin tln( s1.regionMatche s(true,0,s2,6,7 )) ;
}
}
Comment