public static int strcmp(char[] a, int startA, char[] b, int startB) {for (; a[startA] == b[startB]; startA++, startB++) {if (a[startA] == 0) {return 0;}}return a[startA] - b[startB];}

public static int strcmp ( char [ ] a , int startA , char [ ] b , int startB ) { for ( ; a [ startA ] == b [ startB ] ; startA ++ , startB ++ ) { if ( a [ startA ] == 0 ) { return 0 ; } } return a [ startA ] - b [ startB ] ; }
public static int StrCmp(char[] a, int startA, char[] b, int startB){for (; a[startA] == b[startB]; startA++, startB++){if (a[startA] == 0){return 0;}}return a[startA] - b[startB];}
