Here you can find the source of countChars(String data)
public static Integer countChars(String data)
//package com.java2s; /*/* w w w . ja v a 2s . c o m*/ * Copyright (c) Mirth Corporation. All rights reserved. * * http://www.mirthcorp.com * * The software in this package is published under the terms of the MPL license a copy of which has * been included with this distribution in the LICENSE.txt file. */ public class Main { /** * Counts the number of characters in this String. */ public static Integer countChars(String data) { if (data == null) { return null; } return data.length(); } }