public class Check1 { public static void main(String[] args) { String string="fangxing"; System.out.println(string.length()); } }