Java tutorial
//package com.java2s; public class Main { public static long getHanziCount(String pin1yin1) { return (long) pin1yin1.trim().split("-").length; } }