sentence: introduced piecemeal by various traders and wandering mystics from india , islam first gained a foothold between the twelfth and fifteenth centuries in coastal regions of sumatra , northern java , and kalimantan .