Sunday, March 6, 2011

commonEnd

public boolean commonEnd(int[] a, int[] b) {
if(a[0] == b[0] || a[a.length - 1] == b[b.length - 1]){return true;}
else{return false;}}

No comments:

Post a Comment