Here you can find the source of startsWith(String str, String mark, int paramInt)
private static boolean startsWith(String str, String mark, int paramInt)
//package com.java2s; //License from project: Apache License public class Main { private static boolean startsWith(String str, String mark, int paramInt) { char[] value = str.toCharArray(); if ((paramInt < 0) || paramInt > value.length) { return false; }/* ww w . j ava 2 s . com*/ int k = mark.length(); char[] chars = mark.toCharArray(); while (--k >= 0) { if (value[paramInt + k] != chars[k]) { return false; } } return true; } }